fleche.storage.bagofholding_file

Attributes

logger

Classes

BagOfHoldingH5FileBackend

File-based storage backend using pickle.

ValueBagOfHoldingH5File

Bridges ValueStorage with StorageBackend primitives.

CallBagOfHoldingH5File

Bridges CallStorage with StorageBackend primitives.

Module Contents

fleche.storage.bagofholding_file.logger[source]
class fleche.storage.bagofholding_file.BagOfHoldingH5FileBackend[source]

Bases: fleche.storage.file.FileStorage

File-based storage backend using pickle.

Stores objects on the filesystem.

__post_init__()[source]
_to_file(value: Any, path: pathlib.Path) None[source]
_from_file(path: pathlib.Path) Any[source]
class fleche.storage.bagofholding_file.ValueBagOfHoldingH5File[source]

Bases: fleche.storage.base.ValueMixin, fleche.storage.base.DestructuringMixin, BagOfHoldingH5FileBackend

Bridges ValueStorage with StorageBackend primitives.

Implements save and load using put and get. Concrete classes inherit from this and a StorageBackend implementation to get a fully functional value storage.

class fleche.storage.bagofholding_file.CallBagOfHoldingH5File[source]

Bases: fleche.storage.base.CallMixin, BagOfHoldingH5FileBackend

Bridges CallStorage with StorageBackend primitives.

Implements save, load, and query using put and get, deriving the storage key from the call’s lookup key. transform is inherited from CallStorage.

Concrete classes inherit from this and a StorageBackend implementation to get a fully functional call storage.