ConfigManager#
- class pisces.utilities.config.ConfigManager(path: str | Path, autosave: bool = True)[source]#
Hierarchical configuration manager with dot-separated keys and optional autosave.
Stores configuration data as nested dictionaries, backed by a YAML file. Allows dot-separated key access for nested structures.
- Parameters:
Methods
__init__
(path[, autosave])clear
()get
(k[,d])items
()keys
()pop
(k[,d])If key is not found, d is returned if given, otherwise KeyError is raised.
popitem
()as a 2-tuple; but raise KeyError if D is empty.
setdefault
(k[,d])to_dict
()Return the full configuration data as a dictionary.
update
(mapping, **kwargs)Update the configuration with another dictionary.
values
()