woob.tools.config.yamlconfig
¶
- class YamlConfig(path)[source]¶
Bases:
IConfig
- DUMPER¶
alias of
WoobDumper
- LOADER¶
alias of
CSafeLoader
- load(default={})[source]¶
Load config.
- Parameters:
default (dict[
str
]) – default values for the config (default:{}
)
- get(*args, **kwargs)[source]¶
Get the value of an option.
- Parameters:
args – path of the option key.
default – if specified, default value when path is not found