I'd like to do the following functionality:
service = get_service('storage', 'v1', auth)
data = BytesIO()
request = service.objects().get_media(bucket=bucket, object=filename)
media = MediaIoBaseDownload(data, request, chunksize=chunksize)
But with a signed URL instead if a bucket and object. How do I chunk download a signed url in python?
You can create s Signed URL either using gsutil or writing your own code to generate it. I have tested it using this:
After that the problem reduces to:
Or maybe:
as explained in this answer.
There's also a repo where they have developed code to generate signed urls using python.