Skip to main content

component

superduper.components.component

Source code

ensure_initialized​

ensure_initialized(func)
ParameterDescription
funcDecorator function.

Decorator to ensure that the model is initialized before calling the function.

getdeepattr​

getdeepattr(obj,
attr)
ParameterDescription
objObject.
attrAttribute.

Get nested attribute with dot notation.

import_​

import_(r=None,
path=None,
db=None)
ParameterDescription
rObject to be imported.
pathComponents directory.
dbDatalayer instance.

Helper function for importing component JSONs, YAMLs, etc.

Component​

Component(self,
identifier: str,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
uuid: str = None,
*,
artifacts: 'dc.InitVar[t.Optional[t.Dict]]' = None) -> None
ParameterDescription
identifierIdentifier of the leaf.
dbDatalayer instance.
uuidUUID of the leaf.
artifactsA dictionary of artifacts paths and DataType objects

Base class for all components in superduper.

Class to represent superduper serializable entities that can be saved into a database.