swh.storage.filter module

class swh.storage.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']
content_add(content: List[swh.model.model.Content]) → Dict[source]
skipped_content_add(content: List[swh.model.model.SkippedContent]) → Dict[source]
directory_add(directories: List[swh.model.model.Directory]) → Dict[source]
revision_add(revisions: List[swh.model.model.Revision]) → Dict[source]