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 (Optional[str]) –

location_type
property transport_params

get GCS credentials for storage

Return type

Dict

property paths

Resolve GS file paths with prefix

Return type

List[str]

property size

Return the size in bytes of the given file

Return type

int