astro.files.locations.google.gcs

Module Contents

Classes

GCSLocation

Handler GS object store operations

class astro.files.locations.google.gcs.GCSLocation(path, conn_id=None)

Bases: astro.files.locations.base.BaseFileLocation

Handler GS object store operations

Parameters
  • path (str) –

  • conn_id (str | None) –

property hook: airflow.providers.google.cloud.hooks.gcs.GCSHook
Return type

airflow.providers.google.cloud.hooks.gcs.GCSHook

property transport_params: dict

get GCS credentials for storage

Return type

dict

property paths: list[str]

Resolve GS file paths with prefix

Return type

list[str]

property size: int

Return file size for GCS location

Return type

int

property openlineage_dataset_namespace: str

Returns the open lineage dataset namespace as per https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md

Return type

str

property openlineage_dataset_name: str

Returns the open lineage dataset name as per https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md

Return type

str

location_type