woob.tools.config.iconfig
¶
- class IConfig[source]¶
Bases:
object
Interface for config storage.
Config stores keys and values. Each key is a path of components, allowing to group multiple options.
- load(default={})[source]¶
Load config.
- Parameters
default (dict[
str
]) – default values for the config
- set(*args)[source]¶
Set a config value.
- Parameters
args (str or object) – all args except the last arg are the path of the option key.