swh.vault.cookers.revision_flat module

class swh.vault.cookers.revision_flat.RevisionFlatCooker(obj_type, obj_id, backend, storage, max_bundle_size=536870912)[source]

Bases: swh.vault.cookers.base.BaseVaultCooker

Cooker to create a revision_flat bundle

CACHE_TYPE_KEY = 'revision_flat'
check_exists()[source]

Checks that the requested object exists and can be cooked.

Override this in the cooker implementation.

prepare_bundle()[source]

Implementation of the cooker. Yields chunks of the bundle bytes.

Override this with the cooker implementation.