h5.archive.HDFArchiveGroup.__getitem__

HDFArchiveGroup.__getitem__(key)[source]

Return the entry at key, reconstructing a Python object when possible.

If key contains '/' it is treated as a path and traversed through the intermediate subgroups. Registered classes are reconstructed via their __factory_from_dict__ (see h5.formats).

Parameters:
keystr

Entry name, or a '/'-separated path relative to this group.

Returns:
object

The stored value, a reconstructed Python object, or an HDFArchiveGroup for a subgroup.

Raises:
KeyError

If key does not exist in the group.