mllooper.LooperConfig#
- pydantic model mllooper.LooperConfig[source]#
Bases:
ModuleConfig- Validators:
check_references_are_included»modulesput_extra_in_modules»all fields
- field log_level: int = 20#
- Validated by:
put_extra_in_modules
- field log_time_delta: timedelta = datetime.timedelta(seconds=10)#
- Validated by:
put_extra_in_modules
- field modules: Dict[str, Union[ModuleConfig, str]] = {}#
- Validated by:
check_references_are_includedput_extra_in_modules
- field name: Optional[str] = None#
- Validated by:
put_extra_in_modules
- classmethod get_yaml_tag() str#
Return the configs yaml tag.
- load(*args, **kwargs)[source]#
Create the object the yaml config object is for.
This basic constructor uses all attributes of the config as kwargs for the loaded class.
- 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