Skip to content

Automatically exported from code.google.com/p/appengine-ndb-experiment

License

Notifications You must be signed in to change notification settings

limeuser/appengine-ndb-experiment

Repository files navigation

Introduction
------------

(UPDATE: As of SDK 1.6.4, NDB has reached status General Availability.
Mentions of its experimental status in this file should be ignored.)

In this project I am developing a new, experimental datastore
API for the Google App Engine Python runtime. I am doing this as a
Google employee but using an open source development style as I
believe this project will benefit from early user feedback.

Eventually, when the project is sufficiently mature, the code will
(hopefully) become a standard component of the App Engine Python SDK
and the Python runtime. Until then, however, the way to use this code
is to check it out from the repository and copy it into your
application.

Until the code is integrated into the SDK and runtime, I am not going
to worry about backwards compatibility between versions of this
experimental code. You are not required to check out the trunk,
however I do not plan to fix bugs in older branches.

See the file LICENSE for the open source licensing conditions (which
are the same as for the App Engine SDK).

--Guido van Rossum <[email protected]>


Overview
--------

The code is structured into two subdirectories:

- ndb: This is the main code base.  Notable submodules are
  key.py, model.py, query.py, eventloop.py, tasklets.py, and context.py.
  For each module foo.py there's a corresponding foo_test.py which
  contains unit tests for that module.

- demo: This is where demo programs live.  Check out guestbook.py and
  main.py.

The main directory contains some scripts and auxiliary files.

How To
------

You need to separately download and install the latest version of the
App Engine Python SDK.  NOTE: older versions don't work!!!!!!!!!
(If you don't know where to find that you are not ready to play with
this code. :-) Assuming the SDK lives at /usr/local/google_appengine,
you need to add that directory to your $PYTHONPATH environment
variable.  You should then be able to run something like this:

  >>> import ndb

If this works your setup is correct.

To run the tests, use

  make

To run the tests with coverage, install the coverag.py package from
http://nedbatchelder.com/code/coverage/ and then use

  make coverage

To run the demo app on localhost:8080, use

  make serve

To run an interactive shell with ndb already imported and some sample
classes defined, use

  make python

See the Makefile for more details.  For Windows users, the "make.cmd"
script has similar functionality.

About

Automatically exported from code.google.com/p/appengine-ndb-experiment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages