I have a CSV
file on Google Cloud Storage
that I want to read data from without downloading it. Is this possible? I'm extensively checking the docs but I haven't found a direct way to do this. The docs say you have to download the file and then do the csv reading, but this is something not possible on my case because the app that will do this is hosted on Google App Engine
and it won't allow you to do so.
This is my current function:
def get_data_from_csv_file(filename):
app_id = get_app_id()
g_storage = storage.Client(project=app_id)
bucket = g_storage.get_bucket('prod-data-migration-csv-exports')
After this though, I'm lost. Has anyone achieved this before? Is there a way to get the file and read it's content in a manner you can store all the .csv content in a variable?