component
superduper.components.component
build_context
​
build_context(vars_dict: dict[str,
typing.Any] | None)
Parameter | Description |
---|---|
vars_dict | Dictionary of variables to set for the build context. |
Context manager to set build variables for components.
current_build_vars
​
current_build_vars(default: Optional[Any] = None) -> dict[str,
typing.Any] | None
Parameter | Description |
---|---|
default | Default value to return if no variables are set. |
Get the current build variables.
ensure_setup
​
ensure_setup(func)
Parameter | Description |
---|---|
func | Decorator function. |
Decorator to ensure that the model is initialized before calling the function.
propagate_failure
​
propagate_failure(f)
Parameter | Description |
---|---|
f | Function to decorate. |
Propagate failure decorator.
Component
​
Component(self,
identifier: str,
upstream: Optional[List[ForwardRef('Component')]] = None,
compute_kwargs: Dict = <factory>,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None) -> None
Parameter | Description |
---|---|
identifier | Identifier of the instance. |
upstream | A list of upstream components. |
compute_kwargs | Keyword arguments to manage the compute environment. |
db | Datalayer instance. Datalayer instance. |
Base class for all components in superduper.io.
Class to represent superduper.io serializable entities that can be saved into a database.
:param db: Datalayer instance.