h5.formats

Registration mechanism for archive-compatible Python classes.

To be written to and reconstructed from an HDF5 archive, a Python class is associated with an HDF5 format string. This module maintains the registry that maps format strings to the information needed to rebuild the corresponding objects, together with the functions to populate and query it.

Functions

get_format_info(hdf5_format)

Look up the FormatInfo registered for hdf5_format.

register_backward_compatibility_method(...)

Register a backward-compatibility method for reading old data.

register_class(cls[, doc, read_fun, hdf5_format])

Register a Python class so it can be written to and read back from an archive.

Classes

FormatInfo(classname, modulename, doc, ...)

Metadata describing how to reconstruct a Python class from an HDF5 group.