woob.tools.config.iniconfig

class INIConfig(path)[source]

Bases: IConfig

ROOTSECT = 'ROOT'
load(default={})[source]

Load config.

Parameters:

default (dict[str]) – default values for the config (default: {})

save()[source]

Save config.

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

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.

delete(*args)[source]

Delete an option from config.

Parameters:

args (str) – path to the option key.