woob.tools.config.yamlconfig
¶
-
class
woob.tools.config.yamlconfig.
YamlConfig
(path)¶ Bases:
woob.tools.config.iconfig.IConfig
-
DUMPER
¶ alias of
woob.tools.config.yamlconfig.WoobDumper
-
LOADER
¶ alias of
yaml.loader.Loader
-
delete
(*args)¶ Delete an option from config.
- Parameters
args (str) – path to the option key.
-
get
(*args, **kwargs)¶ Get the value of an option.
- Parameters
args – path of the option key.
default – if specified, default value when path is not found
-
load
(default={})¶ Load config.
- Parameters
default (dict[
str
]) – default values for the config
-
save
()¶ Save config.
-
set
(*args)¶ Set a config value.
- Parameters
args (str or object) – all args except the last arg are the path of the option key.
-