yacmmal package

Subpackages

Submodules

yacmmal.base module

yacmmal.base.autoconfig(base_path: str, config: Sequence[Tuple[str, Union[str, yacmmal.types.config.ConfigAttrs], Type[pydantic.main.BaseModel]]], format: Union[str, yacmmal.types.formats.ConfigFormat]) Callable[source]

Decorator to automatically load a config file.

Parameters
  • base_path (str) – The base path to the config file.

  • config (Sequence[Tuple[str, str, Type[BaseModel]]]) – A list of tuples containing the name of the config file, the path to the config file, and the dataclass.

  • format (str) – The format of the config file.

Module contents