executing scripts in remote_api for app engine

141 Views Asked by At

I would like to use the remote_api in python app engine to upload some 4000 entities to the ndb datastore from my desktop.The instructions are quite clear on how to use remote_api shell from this article (https://developers.google.com/appengine/articles/remote_api). But I want to write a script to upload all my entities. I cant seem to figure out how to execute a script.so how do I run a script that I've written?? Any help will be much appreciated.I'm a newbie at python and linux. :)

1

There are 1 best solutions below

8
On

You may use the appcfg.py tool with the option upload_data by passing a CSV file containing your data.

You should previously create a bulkloader file (create_bulkloader_config option) and change it to your needs before using it.