h1st.model_repository.storage.local module

class h1st.model_repository.storage.local.LocalStorage(storage_path=None)[source]

Bases: h1st.model_repository.storage.base.Storage

Provide data storage on top of local file system


Initialize self. See help(type(self)) for accurate signature.

get_obj(name: str) → Any[source]

Retrieve object value


name – object name

get_bytes(name: str) → bytes[source]

Retrieve object value in bytes


name – object name

set_obj(name: str, value: Any) → NoReturn[source]

Set key value to a python object

  • name – object name

  • value – value in python object

set_bytes(name, value)[source]

Set a key value to a list of bytes

  • name – object name

  • value – value in bytes

exists(name: str) → bool[source]

Return true if object exists in the storage

delete(name: str) → NoReturn[source]

Delete an object in storage