I have some objects in different path in one bucket of Google Cloud storage.
I want to download all files in single zip file.
I am using Python GCS JSON API.
This gcs_zip_dynamics() function shows you here how to zip GCS files.
To download you can use:
self.response.headers[b'Content-Type'] = b'multipart/x-zip'
self.response.headers[b'Content-Disposition'] = str('attachment; filename=<file_name>.zip'
self.response.write(gcs_data.gcs_read_blob(dyn))
The gcs_read_blob() function is also part of the Gist.
Great example here.