swh.deposit.api.private.deposit_check module

swh.deposit.api.private.deposit_check.known_archive_format(filename)[source]
class swh.deposit.api.private.deposit_check.SWHChecksDeposit(**config)[source]

Bases: swh.deposit.api.private.SWHPrivateAPIView, swh.deposit.api.common.SWHGetDepositAPI, swh.deposit.api.private.DepositReadMixin

Dedicated class to read a deposit’s raw archives content.

Only GET is supported.

process_get(req, collection_name, deposit_id)[source]
Build a unique tarball from the multiple received and stream that

content to the client.

Parameters
  • req (Request) –

  • collection_name (str) – Collection owning the deposit

  • deposit_id (id) – Deposit concerned by the reading

Returns

Tuple status, stream of content, content-type