baselooper.LooperConfig#

pydantic model baselooper.LooperConfig[source]#

Bases: baselooper.module.ModuleConfig

Validators
  • check_references_are_included » modules

  • put_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[baselooper.module.ModuleConfig, str]] = {}#
Validated by
  • check_references_are_included

  • put_extra_in_modules

field name: Optional[str] = None#
Validated by
  • put_extra_in_modules

validator check_references_are_included  »  modules[source]#
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.

validator put_extra_in_modules  »  all fields[source]#
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