logml.configuration.base

Functions

parse_nested_configs(cfg, ...)

Goes through a given config and loads nested .yaml configs.

validate_tuple(default, value)

Parse string into 2-tuple

Classes

YamlAdapter([path, nested_configs_root])

Basic utility for working with .yaml configs.

Exceptions

YamlAdapterException

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