Skip to content

Googlegcs

flowtask.interfaces.GoogleGCS

GoogleCloudStorageClient

GoogleCloudStorageClient(*args, bucket_name, **kwargs)

Bases: GoogleClient, ABC

Google Cloud Storage Client for interacting with Google Cloud Storage (GCS). Provides methods for file and folder operations.

create_folder async

create_folder(folder_name)

Create a folder in GCS by creating an empty blob with a trailing '/'.

delete_file async

delete_file(file_path)

Delete a file from GCS.

download_file async

download_file(source_path, destination_dir)

Download a file from GCS.

download_folder async

download_folder(source_folder, destination_folder)

Download all files from a GCS folder to a local folder.

get_bucket async

get_bucket()

Get the GCS bucket, with caching.

upload_file async

upload_file(source_path, destination_path)

Upload a file to GCS.

upload_folder async

upload_folder(source_folder, destination_folder)

Upload all files from a local folder to a GCS folder.