woob.tools.config.extra

class AutoCleanConfig[source]

Bases: object

Removes config file if it has no values.

save()[source]
class ForkingConfig(*args, **kwargs)[source]

Bases: object

Runs the actual save in a forked processes, making save non-blocking. It prevents two save() from being called at once by blocking on the previous one if it is not finished. It is also possible to call join() to wait for the save to complete.

process = None
join()[source]
save()[source]
class TimeBufferConfig(path, saved_since_seconds=None, last_run=True, logger=None, *args, **kwargs)[source]

Bases: object

Really saves only every saved_since_seconds seconds. It is possible to force save (e.g. at exit) with force_save().

saved_since_seconds = None
save(*args, **kwargs)[source]
force_save()[source]