aleph.services.storage.engine module

class aleph.services.storage.engine.StorageEngine[source]

Bases: ABC

abstractmethod async delete(filename: str)[source]
abstractmethod async exists(filename: str) bool[source]
abstractmethod async read(filename: str) bytes | None[source]
abstractmethod async read_iterator(filename: str, chunk_size: int = 1048576) AsyncIterable[bytes] | None[source]
abstractmethod async write(filename: str, content: bytes)[source]