ConstantProperties#

class ConstantProperties#

Bases: object

A view of constant properties of an entity

Methods:

as_dict()

convert the properties view to a python dict

get(key)

get property value by key

items()

lists the property keys together with the corresponding value

keys()

lists the available property keys

values()

lists the property values

as_dict()#

convert the properties view to a python dict

Return type:

dict[str, PropValue]

get(key)#

get property value by key

Parameters:

key (str) – the name of the property

Returns:

the property value or None if value for key does not exist

Return type:

PropValue | None

items()#

lists the property keys together with the corresponding value

Returns:

the property keys with corresponding values

Return type:

list[Tuple[str, PropValue]]

keys()#

lists the available property keys

Returns:

the property keys

Return type:

list[str]

values()#

lists the property values

Returns:

the property values

Return type:

list | Array