swh.storage.objstorage module

class swh.storage.objstorage.ObjStorage(objstorage_config: Dict)[source]

Bases: object

Objstorage collaborator in charge of adding objects to the objstorage.

content_get(contents: Iterable[bytes]) → Generator[source]

Retrieve content data from the objstorage


contents – List of contents to retrieve data from

content_add(contents: Iterable[swh.model.model.Content]) → Dict[source]

Add contents to the objstorage.


contents – List of contents to add1


The summary dict of content and content bytes added to the objstorage.