flytekit.interfaces.data.gcs package

Submodules

flytekit.interfaces.data.gcs.gcs_proxy module

class flytekit.interfaces.data.gcs.gcs_proxy.GCSProxy(raw_output_data_prefix_override: str = None)[source]

Bases: flytekit.interfaces.data.common.DataProxy

download(remote_path, local_path)[source]
Parameters
  • remote_path (Text) – remote gs:// path

  • local_path (Text) – directory to copy to

download_directory(remote_path, local_path)[source]
Parameters
  • remote_path (Text) – remote gs:// path

  • local_path (Text) – directory to copy to

exists(remote_path)[source]
Parameters

remote_path (Text) – remote gs:// path

Rtype bool

whether the gs file exists or not

get_random_directory()[source]
Return type

Text

get_random_path() → str[source]

If this object was created with a raw output data prefix, usually set by Propeller/Plugins at execution time and piped all the way here, it will be used instead of referencing the GCS_PREFIX configuration.

property raw_output_data_prefix_override
upload(file_path, to_path)[source]
Parameters
  • file_path (Text) –

  • to_path (Text) –

upload_directory(local_path, remote_path)[source]
Parameters
  • local_path (Text) –

  • remote_path (Text) –

Module contents