voiage.ingestion.croissant.CroissantProvider
Convert an offline Croissant descriptor with one CSV RecordSet.
Methods
Section titled “Methods”can_handle
Section titled “can_handle”can_handle([positional or keyword] self: None = None, [positional or keyword] descriptor: dict[str, object] = None) -> boolRecognize the Croissant context rather than a filename convention.
Parameters:
selfdescriptordict[str, object]
Returns: bool
ingest
Section titled “ingest”ingest([positional or keyword] self: None = None, [positional or keyword] descriptor_path: Path = None, [keyword-only] policy: SourceAccessPolicy = None, [keyword-only] selection: CroissantSelection | SourceSelection | None = None) -> NormalizedInputBundleMaterialize one explicitly selected local Croissant CSV pair.
Legacy one-record-set/one-distribution descriptors need no selector.
A descriptor with more than one local pair must instead identify both a
recordSet name and a distribution @id. The selected record
set must explicitly link to that distribution through the narrowly
supported local-profile distribution member; VOIAGE never guesses
a relationship from matching field names.
Parameters:
selfdescriptor_pathPathpolicySourceAccessPolicyselectionCroissantSelection | SourceSelection | None(default:None)
Returns: NormalizedInputBundle