pyiron_base.interfaces.object module
The core class in pyiron, linking python to the database to file storage.
- class pyiron_base.interfaces.object.HasDatabase(*args, **kwargs)
Bases:
ABC
A base class for objects that are registered in pyiron’s database
# TODO: Flesh this class out so it actually gives us a good link to the database!
- property database
- save()
- class pyiron_base.interfaces.object.HasStorage(*args, group_name=None, **kwargs)
Bases:
HasHDF
,ABC
A base class for objects that use HDF5 data serialization via the DataContainer class.
Unless you know what you are doing sub classes should pass the group_name argument to
__init__()
or overrideget_hdf_group_name()
to force a default name for the HDF group the object should write itself to.- property storage: DataContainer
- class pyiron_base.interfaces.object.PyironObject(*args, **kwargs)
Bases:
HasStorage
,HasDatabase
,ABC
The fundamental pyiron object bringing together python objects, database identification, and data serialziation.