baselooper.ModuleListConfig#
- pydantic model baselooper.ModuleListConfig[source]#
Bases:
baselooper.module.ModuleConfig- field log_level: int = 20#
- field log_time_delta: datetime.timedelta = datetime.timedelta(seconds=10)#
- field modules: List[baselooper.module.ModuleConfig] [Required]#
- field name: Optional[str] = None#
- classmethod get_yaml_tag() str#
Return the configs yaml tag.
- load(*args, **kwargs)[source]#
Create the object the yaml config object is for.
Should be overwritten in sub classes.
- classmethod set_yaml_tag(yaml_tag: Optional[str]) None#
Set the yaml tag of the config.
A valid tag has to start with an exclamation mark.
- Parameters
yaml_tag – Optional string of the tag. If None the tag will be set to a default value.
- validate_config(force_all: bool = False) None#
Validate a BaseConfig instance
If force_all is False do not raise an error on missing attributes. Configs have to be correct but may be incomplete.
- Parameters
force_all – If True raise an error on missing attributes