woob.tools.storage

class IStorage[source]

Bases: object

load(what, name, default={})[source]

Load data from storage.

save(what, name)[source]

Write changes in storage on the disk.

set(what, name, *args)[source]

Set data in a path.

delete(what, name, *args)[source]

Delete a value or a path.

get(what, name, *args, **kwargs)[source]

Get a value or a path.

class StandardStorage(path)[source]

Bases: IStorage

load(what, name, default={})[source]

Load data from storage.

save(what, name)[source]

Write changes in storage on the disk.

set(what, name, *args)[source]

Set data in a path.

delete(what, name, *args)[source]

Delete a value or a path.

get(what, name, *args, **kwargs)[source]

Get a value or a path.