lories.core.configs.configurations#

Classes#

Configurations

Helper class that provides a standard way to create an ABC using

Module Contents#

class lories.core.configs.configurations.Configurations(name: str, dirs: lories.core.configs.directories.Directories, defaults: Mapping[str, Any] | None = None, **kwargs)[source]#

Bases: lories._core._Configurations

Inheritance diagram of lories.core.configs.configurations.Configurations

Helper class that provides a standard way to create an ABC using inheritance.

get(key: str | Iterable[str], default: Any = None) Any[source]#

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

pop(key: str, default: Any = None) Any[source]#

D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised.

update(update: Mapping[str, Any], replace: bool = True) None[source]#

D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v