Prop#
- class Prop(name)#
Bases:
object
A reference to a property used for constructing filters
Use ==, !=, <, <=, >, >= to filter based on property value (these filters always exclude entities that do not have the property) or use one of the methods to construct other kinds of filters.
- Parameters:
name (str) – the name of the property
Methods:
any
(values)Create a filter that keeps entities if their property value is in the set
is_none
()Create a filter that only keeps entities that do not have the property
is_some
()Create a filter that only keeps entities if they have the property
not_any
(values)Create a filter that keeps entities if their property value is not in the set or if they don't have the property
- any(values)#
Create a filter that keeps entities if their property value is in the set
- Parameters:
- Returns:
the property filter
- Return type:
- is_none()#
Create a filter that only keeps entities that do not have the property
- Returns:
the property filter
- Return type:
- is_some()#
Create a filter that only keeps entities if they have the property
- Returns:
the property filter
- Return type:
- not_any(values)#
Create a filter that keeps entities if their property value is not in the set or if they don’t have the property
- Parameters:
- Returns:
the property filter
- Return type: