Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As explained in <a href="http://mbrochh.tumblr.com/post/6937702727/importing-google-app-engine-datastore-into-your-local" rel="noreferrer">this article</a> (link updated, thanks to Zied Hamdi)</p> <p>You simply need to enable the remote api</p> <pre><code>builtins: - remote_api: on </code></pre> <p>Update your application then run the following commands:</p> <pre><code>appcfg.py download_data -A s~YOUR_APP_NAME --url=http://YOUR_APP_NAME.appspot.com/_ah/remote_api/ --filename=data.csv appcfg.py --url=http://localhost:8080/_ah/remote_api/ --filename=data.csv upload_data . </code></pre> <p>Edit for After April 12th 2016 on Latest AppEngine SDK:</p> <p>The above works for SDK version 1.9.0 and before. However with the <a href="https://cloud.google.com/appengine/docs/deprecations/" rel="noreferrer">depreciation of ClientLogin</a>, the above will cause an error of </p> <pre><code>03:13 PM Uploading data records. [INFO ] Logging to bulkloader-log-20160909.151355 [INFO ] Throttling transfers: [INFO ] Bandwidth: 250000 bytes/second [INFO ] HTTP connections: 8/second [INFO ] Entities inserted/fetched/modified: 20/second [INFO ] Batch Size: 10 [INFO ] Opening database: bulkloader-progress-20160909.151355.sql3 2016-09-09 15:13:55,175 INFO client.py:578 Refreshing due to a 401 (attempt 1/2) 2016-09-09 15:13:55,176 INFO client.py:804 Refreshing access_token 2016-09-09 15:13:55,312 INFO client.py:578 Refreshing due to a 401 (attempt 2/2) </code></pre> <p><a href="https://code.google.com/p/googleappengine/issues/detail?id=12445#c20" rel="noreferrer">Recommended by Anssi here,</a> we can use the API server directly without running into this error. For a typical dev_appserver startup you get the following output </p> <pre><code>INFO 2016-09-09 19:27:11,662 sdk_update_checker.py:229] Checking for updates to the SDK. INFO 2016-09-09 19:27:11,899 api_server.py:205] Starting API server at: http://localhost:52497 INFO 2016-09-09 19:27:11,905 dispatcher.py:197] Starting module "default" running at: http://localhost:8080 INFO 2016-09-09 19:27:11,918 admin_server.py:116] Starting admin server at: http://localhost:8000 </code></pre> <p>instead of the above for upload use the API port, in this case </p> <pre><code>appcfg.py --url=http://localhost:52497/_ah/remote_api/ --filename=data.csv upload_data . </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload