h5.archive.Dict

class h5.archive.Dict(ob)[source]

Archive wrapper for a Python dict.

Adapts a dict to the archive reduce/reconstruct protocol, storing each key -> value pair in an HDF5 subgroup. Only string keys are supported (format tag "Dict"); dicts with non-string keys use DictNonStrKey instead, selected by the write-side routing in HDFArchiveGroup.__setitem__().

Instances are created internally by HDFArchiveGroup and the class is registered with h5.formats.

Parameters:
obdict

The dict to wrap.