Skip to content

AssetCollection.to_fields

def AssetCollection.to_fields(
*,
fields: AssetFieldNames | None = None,
storage: Storage | None = None,
authentication: Authentication | None = None,
) -> dict[str, Assets | Storage | Authentication]

Convert the collection to fields ready for dataset ingestion.

fields AssetFieldNames | None

Optional output names for the assets, storage, and authentication fields.

storage Storage | None

Additional storage registry entries to retain.

authentication Authentication | None

Additional authentication registry entries to retain.

A field-name mapping containing Assets and any nonempty Storage or Authentication fields.