fleche.storage.bagofholding_file ================================ .. py:module:: fleche.storage.bagofholding_file Attributes ---------- .. autoapisummary:: fleche.storage.bagofholding_file.logger Classes ------- .. autoapisummary:: fleche.storage.bagofholding_file.BagOfHoldingH5FileBackend fleche.storage.bagofholding_file.ValueBagOfHoldingH5File fleche.storage.bagofholding_file.CallBagOfHoldingH5File Module Contents --------------- .. py:data:: logger .. py:class:: BagOfHoldingH5FileBackend Bases: :py:obj:`fleche.storage.file.FileStorage` File-based storage backend using pickle. Stores objects on the filesystem. .. py:method:: __post_init__() .. py:method:: _to_file(value: Any, path: pathlib.Path) -> None .. py:method:: _from_file(path: pathlib.Path) -> Any .. py:class:: ValueBagOfHoldingH5File Bases: :py:obj:`fleche.storage.base.ValueMixin`, :py:obj:`fleche.storage.destructuring.DestructuringMixin`, :py:obj:`BagOfHoldingH5FileBackend` Bridges :class:`ValueStorage` with :class:`StorageBackend` primitives. Implements ``save`` and ``load`` using ``put`` and ``get``. Concrete classes inherit from this and a :class:`StorageBackend` implementation to get a fully functional value storage. .. py:class:: CallBagOfHoldingH5File Bases: :py:obj:`fleche.storage.base.CallMixin`, :py:obj:`BagOfHoldingH5FileBackend` Bridges :class:`CallStorage` with :class:`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 :class:`CallStorage`. Concrete classes inherit from this and a :class:`StorageBackend` implementation to get a fully functional call storage.