O'Reilly logo

Programming Google App Engine by Dan Sanderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Bulk Loader Tool

The bulk loader tool is part of the Python SDK, and requires that Python be installed on your computer. The main tool is called bulkloader.py. On Windows, the Python SDK installer puts this command in the command path. On Mac OS X, the Launcher creates a symbolic link to the tool at /usr/local/bin/bulkloader.py when you first run it, which may or may not be in your command path. If you installed the SDK using the ZIP archive, the command is in the SDK’s root directory.

You can verify you can run the bulkloader.py command by running it without arguments:

bulkloader.py

If you have a Python application, you can use the appcfg.py upload_data and appcfg.py download_data commands to do data uploads and downloads. These are equivalent to bulkloader.py, but can also derive the application ID and the remote API URL from your app.yaml file. (Future releases may make more bulk loader features available via appcfg.py; check the App Engine website for the latest.)

If you have a Java application, you just run the bulkloader.py tool, specifying the application ID and remote API URL as command-line arguments:

bulkloader.py --app-id=appid --url=http://appid.appspot.com/remote_api ...

Tip

You can use the bulk loader tool with the development server by specifying the equivalent remote API URL for it using the --url=... argument. This is useful for testing the remote API URL configuration, for verifying data uploads before doing them with the live application, and for managing test ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required