libera_utils.aws.s3_utilities.manual_ingest_data_products#

libera_utils.aws.s3_utilities.manual_ingest_data_products(paths_to_files: list[Path], *, boto_session: Session) list[L0Filename | LiberaDataProductFilename]#

Stage data product files to the Ingest Dropbox and emit a single NewFilesAvailable event.

The SDC Data Ingester picks up the staged files and handles archiving them in the correct bucket as well as creating file metadata and data availability records.

Parameters:
  • paths_to_files (list of Path) – Local filesystem paths to the files to ingest. Each must be a validly named Libera L0 or data product file.

  • boto_session (boto3.Session) – Boto3 session used for all AWS interactions. Created once by the CLI handler and passed in so that the same authenticated session is used throughout the workflow.

Returns:

The validated filename objects for the staged files (useful for subsequent verification).

Return type:

list of L0Filename or LiberaDataProductFilename