upload CSV file to database on Google app engine using Python

730 Views Asked by At

I'm a newbie in python and started learning it from about a week. I was looking into couple of tasks one of which was to upload a file (.txt or .jpg) to a bucket on GAE. I was able to solve it by following couple of tutorials online, but i'm stuck on second task.

So here's the task. i'm trying to upload a .CSV file from my local machine to the Database on Google app engine. I tried searching for solutions, but i could find only solutions pertaining to web applications. So is there a way to upload CSV file to the database instance that i have on GAE using python, is it even possible to do this? or do we have to take up any alternatives. Any working frameworks that could directly do this on git, someone used ? Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

You can upload your files into blobstore, using blobstore api

Once you upload your file in blobstore, you get blobkey, then you can use blobreader, to read csv file content and store them according in your database.

Hope it helps.