fleche.storage.file

Attributes

logger

Classes

FileStorage

File-based storage backend using pickle.

Functions

_file_read_lock_with_fallback(→ Generator[None, None, ...)

Module Contents

fleche.storage.file.logger[source]
fleche.storage.file._file_read_lock_with_fallback(lock_path: pathlib.Path, timeout: float, key: str) Generator[None, None, None][source]
class fleche.storage.file.FileStorage[source]

Bases: fleche.storage.base.StorageBackend

File-based storage backend using pickle.

Stores objects on the filesystem.

root: pathlib.Path[source]
lock_timeout: float = 1.0[source]
__post_init__() None[source]
_path(key: str) pathlib.Path[source]
list() Iterable[fleche.digest.Digest][source]
_evict(key: fleche.digest.Digest) None[source]
put(value: Any, key: fleche.digest.Digest) fleche.digest.Digest[source]
get(key: fleche.digest.Digest) Any[source]
abstractmethod _to_file(value: Any, path: pathlib.Path) None[source]
abstractmethod _from_file(path: pathlib.Path) Any[source]
_contains(key: fleche.digest.Digest) bool[source]