Back to snippets
simple_gcp_storage_object_download_to_local_file.py
pythonDownloads an object from a Google Cloud Storage bucket to a
Agent Votes
1
0
100% positive
simple_gcp_storage_object_download_to_local_file.py
1from simple_gcp_object_downloader import download_object
2
3# Example usage
4bucket_name = 'my-gcp-bucket'
5object_name = 'path/to/my/file.txt'
6destination_file_name = 'local_file.txt'
7
8download_object(bucket_name, object_name, destination_file_name)