mex.extractors.primary_source package

Submodules

mex.extractors.primary_source.helpers module

mex.extractors.primary_source.helpers.get_extracted_primary_source_id_by_name(name: str) MergedPrimarySourceIdentifier | None

Use helper function to return the stableTargetId of a found primary source .

Parameters:

name – name of the primary source

Returns:

ExtractedPrimarySource stableTargetId if one matching primary source is found. None if multiple matches / no match is found

mex.extractors.primary_source.helpers.load_extracted_primary_source_by_name(name: str) ExtractedPrimarySource | None

Use helper function to look up a primary source and to load and return it.

A primary source is searched by its name and loaded into the configured sink and returned.

Parameters:

name – name of the primary source

Returns:

ExtractedPrimarySource if one matching primary source is found. None if multiple matches / no match is found

Module contents