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.api.datastore_types.ToPropertyPb

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

Creates type-specific entity_pb2.PropertyValues.

Determines the type and meaning of the PropertyValue based on the Python type of the input value(s).

NOTE: This function does not validate anything!

name String or unicode; the property name.
values The values for this property, either a single one or a list of them. All values must be a supported type. Lists of values must all be of the same type.

A list of entity_pb2.Property instances.