Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

Module: google.appengine.api.datastore_file_stub

In-memory persistent stub for the Python datastore API. Gets, queries,

and searches are implemented as in-memory scans over all entities.

Stores entities across sessions as pickled proto bufs in a single file. On startup, all entities are read from the file and loaded into memory. On every Put(), the file is wiped and all entities are written from scratch. Clients can also manually Read() and Write() the file themselves.


class DatastoreFileStub: Persistent stub for the Python datastore API.

class KindPseudoKind: Pseudo-kind for schema queries.

class NamespacePseudoKind: Pseudo-kind for namespace queries.

class PropertyPseudoKind: Pseudo-kind for schema queries.

logger Instance of logging.Logger