logml.configuration.base
Functions
|
Goes through a given config and loads nested .yaml configs. |
|
Parse string into 2-tuple |
Classes
|
Basic utility for working with .yaml configs. |
Exceptions
Exception raised when there is an Exception caught while creating logml.config.base.YamlAdapter instance. |
- logml.configuration.base.parse_nested_configs(cfg, nested_configs_root: pathlib.Path, refs: List[str])
Goes through a given config and loads nested .yaml configs.
- class logml.configuration.base.YamlAdapter(path=None, nested_configs_root=None)
Bases:
object
Basic utility for working with .yaml configs.
May be used as a base class for more sofisticated configs, in case some custom validations are required.
- save(file)
Dumps the object using a given path.
- clone()
Returns a cloned config.
- exception logml.configuration.base.YamlAdapterException
Bases:
Exception
Exception raised when there is an Exception caught while creating logml.config.base.YamlAdapter instance.
- logml.configuration.base.validate_tuple(default: Tuple[int, int], value: Union[str, Tuple[int, int]])
Parse string into 2-tuple