Registry
A registry that stores nodes and allows for retrieval by name.
Functions
func
__init____init__(self) -> None
param
selfReturns
None
func
add_pluginsadd_plugins(self, /, plugins) -> None
Add a list of plugins to the registry.
Args: plugins (list[Plugin]): List of Plugin instances to add.
param
selfparam
pluginslist[Plugin]
Returns
None
func
get_pluginsget_plugins(self, /, kind) -> list[Plugin]
Retrieve the list of registered plugins.
Returns: list[Plugin]: List of Plugin instances.
param
selfparam
kindstr
Returns
list[Plugin]
func
lookuplookup(self, /, kind, name) -> T
Retrieve a node by its name.
Args: name (str): The name of the node to retrieve.
Returns: BaseNode: The node associated with the given name.
param
selfparam
kindtype[T]
param
namestr
Returns
T
func
addadd(self, /, node) -> None
Add a node to the registry.
Args: node (BaseNode): The node to add to the registry.
param
selfparam
nodeComponent[Any]
Returns
None
func
print_specsprint_specs(self, /, initial=False) -> None
Print all registered components as YAML with --- separators, sorted by kind.
Args: initial: If True, print initial data; otherwise, print validated specs.
param
selfparam
initialbool
= False
Returns
None
Last updated on