Liman

Registry

A registry that stores nodes and allows for retrieval by name.

Functions

func__init____init__(self) -> None
paramself

Returns

None
funcadd_pluginsadd_plugins(self, /, plugins) -> None

Add a list of plugins to the registry.

Args: plugins (list[Plugin]): List of Plugin instances to add.

paramself
parampluginslist[Plugin]

Returns

None
funcget_pluginsget_plugins(self, /, kind) -> list[Plugin]

Retrieve the list of registered plugins.

Returns: list[Plugin]: List of Plugin instances.

paramself
paramkindstr

Returns

list[Plugin]
funclookuplookup(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.

paramself
paramkindtype[T]
paramnamestr

Returns

T
funcaddadd(self, /, node) -> None

Add a node to the registry.

Args: node (BaseNode): The node to add to the registry.

paramself
paramnodeComponent[Any]

Returns

None
funcprint_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.

paramself
paraminitialbool
= False

Returns

None

Last updated on

On this page