Skip to content

Metadata #

Bases: object

A view of metadata of an entity

__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() #

as_dict() -> dict[str, Any]

convert the properties view to a python dict

Returns:

Type Description
dict[str, PropValue]

get(key) #

get property value by key

Parameters:

Name Type Description Default
key str

the name of the property

required

Returns:

Type Description
PropValue

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

items() #

lists the property keys together with the corresponding value

Returns:

Type Description
list[Tuple[str, PropValue]]

the property keys with corresponding values

keys() #

lists the available property keys

Returns:

Type Description
list[str]

the property keys

values() #

lists the property values

Returns:

Type Description
list[PropValue]