swh.storage.proxies.filter module

class swh.storage.proxies.filter.FilteringProxyStorage(storage)[source]

Bases: object

Filtering Storage implementation. This is in charge of transparently

filtering out known objects prior to adding them to storage.

Sample configuration use case for filtering storage:

object_types = ['content', 'skipped_content', 'directory', 'revision', 'release']
content_add(content: List[swh.model.model.Content]) Dict[str, int][source]
skipped_content_add(content: List[swh.model.model.SkippedContent]) Dict[str, int][source]
directory_add(directories: List[swh.model.model.Directory]) Dict[str, int][source]
revision_add(revisions: List[swh.model.model.Revision]) Dict[str, int][source]
release_add(releases: List[swh.model.model.Release]) Dict[str, int][source]