I can see how to download the remote datastore to local, and how to upload a CSV to the remote app engine server as outlined here:
Uploading and Downloading Data
But is there a way to export my local data to a CSV that is ready for the remote upload script? Of course I could write a custom exporter, but is there no way to automate this process?
The answer is to use the bulkloader.py pointing at your local box:
bulkloader.py --dump --url= http://localhost:8080/remote_api --filename=test.csv --kind=KindHere --app_id=app-id-here
Then you can use the bulkloader.py --restore command to send it to production
查看Python标准库的csv模块 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.