woob.tools.config.sqliteconfig
¶
- class SQLiteConfig(path, commit_since_seconds=None, dump_since_seconds=None, last_run=True, logger=None)[source]¶
Bases:
IConfig
- commit_since_seconds = 3600¶
- dump_since_seconds = 600¶
- load(default={}, optimize=True)[source]¶
Load config.
- Parameters:
default (dict[
str
]) – default values for the config (default:{}
)
- items(table, size=100)[source]¶
Low memory way of listing all items. The size parameters alters how many items are fetched at a time.
- keys(table, size=200)[source]¶
Low memory way of listing all keys. The size parameters alters how many items are fetched at a time.
- 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