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 generally available.

google.appengine.ext.db.get

Stay organized with collections Save and categorize content based on your preferences.

Fetch the specific Model instance with the given key from the datastore.

We support Key objects and string keys (we convert them to Key objects automatically).

keys Key within datastore entity collection to find; or string key; or list of Keys or string keys.
config datastore_rpc.Configuration to use for this request, must be specified as a keyword argument.

If a single key was given: a Model instance associated with key if it exists in the datastore, otherwise None. If a list of keys was
given a list where list[i] is the Model instance for keys[i], or None if no instance exists.