weboob.tools.config.extra

class weboob.tools.config.extra.AutoCleanConfig

Bases: object

Removes config file if it has no values.

save()
class weboob.tools.config.extra.ForkingConfig(*args, **kwargs)

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.

join()
process = None
save()
class weboob.tools.config.extra.TimeBufferConfig(path, saved_since_seconds=None, last_run=True, logger=None, *args, **kwargs)

Bases: object

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

force_save()
save(*args, **kwargs)
saved_since_seconds = None