ngsildclient.model.constants#

This module contains constants used in the model package.

Module Attributes

NgsiLocation

either a tuple of two ints (lat, lon) or a GeoJson Point.

NgsiGeometry

Valid Geometries types for a NGSI-LD GeoProperty.

NgsiDate

Valid Date types for a NGSI-LD TemporalProperty.

CORE_CONTEXT

The default NGSI-LD Core Context.

Classes

AttrType(value)

An enumeration.

Auto()

GeometryMetaAttr(value)

An enumeration.

GeometryType(value)

An enumeration.

Rel(value)

An enumeration.

SmartDataModels()

TemporalType(value)

An enumeration.

class ngsildclient.model.constants.AttrType(value)[source]#

Bases: Enum

An enumeration.

ngsildclient.model.constants.CORE_CONTEXT = 'https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld'#

The default NGSI-LD Core Context. Automatically set at entity creation time if no context is provided.

class ngsildclient.model.constants.GeometryMetaAttr(value)[source]#

Bases: Enum

An enumeration.

class ngsildclient.model.constants.GeometryType(value)[source]#

Bases: Enum

An enumeration.

ngsildclient.model.constants.NgsiDate#

Valid Date types for a NGSI-LD TemporalProperty.

Type

A user type

alias of Union[str, datetime, date, time]

ngsildclient.model.constants.NgsiGeometry#

Valid Geometries types for a NGSI-LD GeoProperty.

Type

A user type

alias of Union[tuple[int, int], Point, LineString, Polygon]

ngsildclient.model.constants.NgsiLocation#

either a tuple of two ints (lat, lon) or a GeoJson Point.

Type

A user type

alias of Union[tuple[int, int], Point]

class ngsildclient.model.constants.Rel(value)[source]#

Bases: Enum

An enumeration.

class ngsildclient.model.constants.TemporalType(value)[source]#

Bases: Enum

An enumeration.