swh.loader.core.metadata_fetchers module#

class swh.loader.core.metadata_fetchers.MetadataFetcherProtocol(origin: Origin, credentials: Dict[str, Dict[str, List[Dict[str, str]]]] | None, lister_name: str, lister_instance_name: str)[source]#

Bases: Protocol

Interface provided by swh.loader.metadata.base.BaseMetadataFetcher to loaders, via setuptools entrypoints.

SUPPORTED_LISTERS: Set[str]#
FETCHER_NAME: str#
get_origin_metadata() List[RawExtrinsicMetadata][source]#
get_parent_origins() List[Origin][source]#
swh.loader.core.metadata_fetchers.get_fetchers_for_lister(lister_name: str) List[Type[MetadataFetcherProtocol]][source]#