swh.vault.api.client module

class swh.vault.api.client.RemoteVaultClient(url, api_exception=None, timeout=None, chunk_size=4096, reraise_exceptions=None, **kwargs)[source]

Bases: swh.core.api.RPCClient

Client to the Software Heritage vault cache.

reraise_exceptions: ClassVar[List[Type[Exception]]] = [<class 'swh.vault.exc.NotFoundExc'>]
fetch(obj_type, obj_id)[source]
cook(obj_type, obj_id, email=None)[source]
progress(obj_type, obj_id)[source]
set_progress(obj_type, obj_id, progress)[source]
set_status(obj_type, obj_id, status)[source]
put_bundle(obj_type, obj_id, bundle)[source]
send_notif(obj_type, obj_id)[source]
batch_cook(batch)[source]
batch_progress(batch_id)[source]