Registry
A registry that stores nodes and allows for retrieval by name.
Functions
func__init____init__(self) -> NoneparamselfReturns
Nonefuncadd_pluginsadd_plugins(self, /, plugins) -> NoneAdd a list of plugins to the registry.
Args: plugins (list[Plugin]): List of Plugin instances to add.
paramselfparampluginslist[Plugin]Returns
Nonefuncget_pluginsget_plugins(self, /, kind) -> list[Plugin]Retrieve the list of registered plugins.
Returns: list[Plugin]: List of Plugin instances.
paramselfparamkindstrReturns
list[Plugin]funclookuplookup(self, /, kind, name) -> TRetrieve a node by its name.
Args: name (str): The name of the node to retrieve.
Returns: BaseNode: The node associated with the given name.
paramselfparamkindtype[T]paramnamestrReturns
Tfuncaddadd(self, /, node) -> NoneAdd a node to the registry.
Args: node (BaseNode): The node to add to the registry.
paramselfparamnodeComponent[Any]Returns
Nonefuncprint_specsprint_specs(self, /, initial=False) -> NonePrint all registered components as YAML with --- separators, sorted by kind.
Args: initial: If True, print initial data; otherwise, print validated specs.
paramselfparaminitialbool= FalseReturns
NoneLast updated on