Python 2.7 has reached end of support
and will be deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you migrate to the latest supported version of Python.
Stay organized with collections
Save and categorize content based on your preferences.
This API is in the google.appengine.ext.ndb.metadata module,
typically used via
from google.appengine.ext.ndb import metadata.
Functions
get_entity_group_version(key)
Return the version of the entity group containing key.
This version is
guaranteed to increase on every change to the entity group. The version may
increase even in the absence of user-visible changes to the entity
group. May return None
if the entity group was never written to.
Warning: The behavior of entity group metadata is now different. The entity
group version can increase independently of user updates. Previously, the entity
group version increased only on user update. To maintain legacy behavior, use the
entity group version workaround.
Arguments
key
key for an entity group.
get_namespaces(start=None, end=None)
Returns a list of namespace names.
Arguments
start
Don't return namespace names before this in alphabetical order.
end
Don't return namespace names after this in alphabetical order.
get_kinds(start=None, end=None):
Returns a list of kind names in the current namespace.
Arguments
start
Don't return kind names before this in alphabetical order.
end
Don't return kind names after this in alphabetical order.
Returns a dict mapping property names for the given kind name
to lists of representation names such as 'STRING', 'BOOLEAN' or 'INT64'.
Only looks in the current namespace.
For a complete list of these types, see
Representation Types
Returns a list of property names for the given kind name.
Arguments
kind
Which kind's properties to list.
start
Don't return property names before this in alphabetical order.
end
Don't return property names after this in alphabetical order.
Representation Types
Property Class
Representation
StringProperty
STRING
BooleanProperty
BOOLEAN
IntegerProperty
INT64
FloatProperty
DOUBLE
DateTimeProperty
DateProperty
TimeProperty
INT64
UserProperty
USER
BlobProperty
STRING
BlobKeyProperty
STRING
TextProperty
STRING
GeoPtProperty
POINT
GenericProperty
(Depends on what value is stored.)
ComputedProperty
(Depends on what value is stored.)
JsonProperty
STRING
PickleProperty
STRING
StructuredProperty
(When you get representation types, StructuredProperty
properties won't be returned. Instead, it shows values for the
subproperties corresponding to their property types.)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis API, located in the \u003ccode\u003egoogle.appengine.ext.ndb.metadata\u003c/code\u003e module, is designed for use in first-generation runtimes within the App Engine standard environment, and users migrating to Python 3 should consult the migration guide.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_entity_group_version(key)\u003c/code\u003e function retrieves the version of an entity group, which increases with every change, potentially even without user-visible updates, and a workaround is available for maintaining legacy behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_namespaces(start=None, end=None)\u003c/code\u003e, \u003ccode\u003eget_kinds(start=None, end=None)\u003c/code\u003e, \u003ccode\u003eget_properties_of_kind(kind, start=None, end=None)\u003c/code\u003e and \u003ccode\u003eget_representations_of_kind(kind, start=None, end=None)\u003c/code\u003e functions are used to list namespace names, kind names, property names and representation names respectively, with options for specifying alphabetical start and end boundaries.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines the various property classes and their corresponding representation types, such as \u003ccode\u003eStringProperty\u003c/code\u003e to \u003ccode\u003eSTRING\u003c/code\u003e and \u003ccode\u003eIntegerProperty\u003c/code\u003e to \u003ccode\u003eINT64\u003c/code\u003e, for different data types.\u003c/p\u003e\n"]]],[],null,[]]