I'm making a small app to export data from BigQuery to google-cloud-storage and then copy it into aws s3, but having trouble finding out how to do it in python.
I have already written the code in kotlin (because it was easiest for me, and reasons outside the scope of my question, we want it to run in python), and in kotlin the google sdk
allows me to get an InputSteam
from the Blob
object, which i can then inject into the amazon s3 sdk's
AmazonS3.putObject(String bucketName, String key, InputStream input, ObjectMetadata metadata)
.
With the python sdk
it seems i only have the options to download file to a file and as a string.
I would like (as i do in kotlin) to pass some object returned from the Blob
object, into the AmazonS3.putObject()
method, without having to save the content as a file first.
I am in no way a python pro, so i might have missed an obvious way of doing this.