module documentation

Every Binding kind, the TOML kinds table and the loaders.

Function is_required Return whether a declaration is a prerequisite its StartupSkill waits for.
Function load_bindings Read a Binding file, in the order its tables appear.
Function resolve_bindings Union what a Component declared in Python with what a deployment declared in TOML.
Constant TOML_KINDS Undocumented
Type Alias Binding Every declaration kind. Later kinds widen the alias rather than the mechanism.
def is_required(binding: Binding) -> bool:

Return whether a declaration is a prerequisite its StartupSkill waits for.

Works for every kind, including PublisherBinding, which has no required field.

def load_bindings(path: str | Path) -> tuple[Binding, ...]:

Read a Binding file, in the order its tables appear.

Raises
ValueErrorWhen a table carries a key its kind does not declare, or names a kind that does not exist.
def resolve_bindings(declared: Iterable[Binding], toml: str | Path | None = None) -> tuple[Binding, ...]:

Union what a Component declared in Python with what a deployment declared in TOML.

The Python declarations come first and the file's follow. Neither source may overwrite the other.

Raises
DuplicateBindingNameErrorWhen one name appears twice, in either source or across both.
TOML_KINDS: Mapping[str, type[Any]] =

Undocumented

Value
{'monitoring': MonitoringBinding,
 'keyed': KeyedBinding,
 'method': MethodBinding,
 'ros2_parameter': ROS2ParameterBinding,
 'action': ActionBinding,
 'tf': TFBinding,
 'publisher': PublisherBinding,
...
Binding: TypeAlias =

Every declaration kind. Later kinds widen the alias rather than the mechanism.

Value
MonitoringBinding | KeyedBinding | MethodBinding | ROS2ParameterBinding | ActionBinding↵
 | TFBinding | PublisherBinding | LifecycleBinding