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.

google.appengine.datastore.datastore_query.FilterPredicate

An abstract base class for all query filters.

Inherits From: expected_type

All sub-classes must be immutable as these are often stored without creating a defensive copy.

Methods

__call__

View source

Applies the filter predicate to the given entity.

Args
entity the datastore_pb.EntityProto to test.

Returns
True if the given entity matches the filter, False otherwise.

__eq__

View source

Return self==value.

__ne__

View source

Return self!=value.