Skip to content

Properties #

Bases: object

A view of the properties of an entity

temporal property #

Get a view of the temporal properties only.

Returns:

Type Description
TemporalProp

__contains__(key) #

Return bool(key in self).

__eq__(value) #

Return self==value.

__ge__(value) #

Return self>=value.

__getitem__(key) #

Return self[key].

__gt__(value) #

Return self>value.

__iter__() #

Implement iter(self).

__le__(value) #

Return self<=value.

__len__() #

Return len(self).

__lt__(value) #

Return self<value.

__ne__(value) #

Return self!=value.

__repr__() #

Return repr(self).

as_dict() #

Convert properties view to a dict.

Returns:

Type Description
dict[str, PropValue]

get(key) #

Get property value.

First searches temporal properties and returns latest value if it exists. If not, it falls back to static properties.

Parameters:

Name Type Description Default
key str

the name of the property.

required

Returns:

Type Description
PropValue

items() #

Get a list of key-value pairs

Returns:

Type Description
list[Tuple[str, PropValue]]

keys() #

Get the names for all properties (includes temporal and static properties).

Returns:

Type Description
list[str]

values() #

Get the values of the properties.

Returns:

Type Description
list[PropValue]