filip.models package
Subpackages
- filip.models.ngsi_ld package
- Submodules
- filip.models.ngsi_ld.base module
- filip.models.ngsi_ld.context module
ActionTypeLDContextGeoPropertyContextGeoPropertyValueContextLDEntityContextLDEntity.contextContextLDEntity.createdAtContextLDEntity.idContextLDEntity.modifiedAtContextLDEntity.observationSpaceContextLDEntity.operationSpaceContextLDEntity.typeContextLDEntity.add_geo_properties()ContextLDEntity.add_properties()ContextLDEntity.add_relationships()ContextLDEntity.delete_properties()ContextLDEntity.delete_relationships()ContextLDEntity.get_context()ContextLDEntity.get_model_fields_set()ContextLDEntity.get_properties()ContextLDEntity.get_relationships()ContextLDEntity.model_dump()ContextLDEntity.return_contextContextLDEntity.to_keyvalues()
ContextLDEntityBaseContextLDEntityKeyValuesContextPropertyContextRelationshipDataTypeLDMessageLDNamedContextGeoPropertyNamedContextPropertyNamedContextRelationshipPropertyFormatUpdateLD
- filip.models.ngsi_ld.subscriptions module
EndpointEntityInfoKeyValuePairNotificationParamsSubscriptionLDSubscriptionLD.csfSubscriptionLD.descriptionSubscriptionLD.entitiesSubscriptionLD.expiresAtSubscriptionLD.geoQSubscriptionLD.idSubscriptionLD.isActiveSubscriptionLD.langSubscriptionLD.notificationSubscriptionLD.notificationTriggerSubscriptionLD.qSubscriptionLD.subscriptionNameSubscriptionLD.temporalQSubscriptionLD.throttlingSubscriptionLD.timeIntervalSubscriptionLD.typeSubscriptionLD.watchedAttributesSubscriptionLD.check_qSubscriptionLD.check_throttling
TemporalQuery
- filip.models.ngsi_v2 package
- Submodules
- filip.models.ngsi_v2.base module
- filip.models.ngsi_v2.context module
ActionTypeCommandContextAttributeContextEntityContextEntity.add_attributes()ContextEntity.check_attributesContextEntity.check_attributes_afterContextEntity.delete_attributes()ContextEntity.get_attribute()ContextEntity.get_attribute_names()ContextEntity.get_attributes()ContextEntity.get_command_triple()ContextEntity.get_commands()ContextEntity.get_properties()ContextEntity.get_relationships()ContextEntity.to_keyvalues()ContextEntity.to_normalized()ContextEntity.update_attribute()
ContextEntityKeyValuesContextEntityKeyValuesListContextEntityKeyValuesValidationListContextEntityListContextEntityValidationListGetEntitiesOptionsNamedCommandNamedContextAttributePropertyFormatQueryUpdate
- filip.models.ngsi_v2.iot module
DeviceDevice.apikeyDevice.attributesDevice.commandsDevice.device_idDevice.endpointDevice.entity_nameDevice.entity_typeDevice.explicitAttrsDevice.expressionLanguageDevice.internal_attributesDevice.lazyDevice.ngsiVersionDevice.protocolDevice.serviceDevice.service_pathDevice.static_attributesDevice.timestampDevice.timezoneDevice.transportDevice.add_attribute()Device.add_command()Device.delete_attribute()Device.delete_command()Device.get_attribute()Device.get_command()Device.update_attribute()Device.update_command()Device.validate_device_attributes_expressionDevice.validate_device_attributes_name_object_idDevice.validate_duplicated_device_attributesDevice.validate_timezone
DeviceAttributeDeviceCommandDeviceListDeviceSettingsDeviceValidationListDeviceValidationList.apikeyDeviceValidationList.devicesDeviceValidationList.endpointDeviceValidationList.explicitAttrsDeviceValidationList.expressionLanguageDeviceValidationList.invalid_devicesDeviceValidationList.protocolDeviceValidationList.timestampDeviceValidationList.timezoneDeviceValidationList.transport
ExpressionLanguageIoTABaseAttributeLazyDeviceAttributePayloadProtocolServiceGroupServiceGroup.apikeyServiceGroup.attributesServiceGroup.autoprovisionServiceGroup.cbHostServiceGroup.commandsServiceGroup.defaultEntityNameConjunctionServiceGroup.entity_typeServiceGroup.explicitAttrsServiceGroup.expressionLanguageServiceGroup.internal_attributesServiceGroup.lazyServiceGroup.ngsiVersionServiceGroup.resourceServiceGroup.serviceServiceGroup.static_attributesServiceGroup.subserviceServiceGroup.timestampServiceGroup.trustServiceGroup.valid_expressionLanguage()ServiceGroup.validate_cbHost
StaticDeviceAttributeTransportProtocol
- filip.models.ngsi_v2.registrations module
- filip.models.ngsi_v2.subscriptions module
ConditionHttpCustomHttpMethodsMessageMqttMqttCustomNgsiPayloadNgsiPayloadAttrNotificationNotification.attrsNotification.attrsFormatNotification.coveredNotification.exceptAttrsNotification.httpNotification.httpCustomNotification.lastFailureNotification.lastFailureReasonNotification.lastSuccessNotification.lastSuccessCodeNotification.metadataNotification.mqttNotification.mqttCustomNotification.onlyChangedAttrsNotification.timesSentNotification.validate_attrNotification.validate_covered_attrsNotification.validate_endpointsNotification.validate_http
ResponseResponse.attrsResponse.attrsFormatResponse.coveredResponse.exceptAttrsResponse.httpResponse.httpCustomResponse.lastFailureResponse.lastFailureReasonResponse.lastNotificationResponse.lastSuccessResponse.lastSuccessCodeResponse.metadataResponse.mqttResponse.mqttCustomResponse.onlyChangedAttrsResponse.timesSent
SubjectSubscription
- filip.models.ngsi_v2.timeseries module
- filip.models.ngsi_v2.units module
Submodules
filip.models.base module
Shared data models
- class filip.models.base.DataType(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str,EnumWhen possible reuse schema.org data types (Text, Number, DateTime, StructuredValue, etc.). Remember that null is not allowed in NGSI-LD and therefore should be avoided as a value.
- ARRAY = 'Array'
- BOOLEAN = 'Boolean'
- COMMAND = 'command'
- COMMAND_RESULT = 'commandResult'
- COMMAND_STATUS = 'commandStatus'
- DATE = 'Date'
- DATETIME = 'DateTime'
- FLOAT = 'Float'
- GEOJSON = 'geo:json'
- INTEGER = 'Integer'
- NUMBER = 'Number'
- OBJECT = 'Object'
- RELATIONSHIP = 'Relationship'
- STRUCTUREDVALUE = 'StructuredValue'
- TEXT = 'Text'
- TIME = 'Time'
- pydantic model filip.models.base.FiwareHeader[source]
Bases:
BaseModelDefine entity service paths which are supported by the NGSI Context Brokers to support hierarchical scopes: https://fiware-orion.readthedocs.io/en/master/user/service_path/index.html
- Config:
populate_by_name: bool = True
validate_assignment: bool = True
- Fields:
- Validators:
wrapper»servicewrapper»service_path
- pydantic model filip.models.base.FiwareHeaderSecure[source]
Bases:
FiwareHeaderDefines entity service paths and an authorization via Bearer-Token which are supported by the NGSI Context Brokers to support hierarchical scopes: https://fiware-orion.readthedocs.io/en/master/user/service_path/index.html
- Config:
populate_by_name: bool = True
validate_assignment: bool = True
- Fields:
- Validators:
wrapper»servicewrapper»service_path
- pydantic model filip.models.base.FiwareLDHeader[source]
Bases:
BaseModelDefine entity service paths which are supported by the NGSI Context Brokers to support hierarchical scopes: https://fiware-orion.readthedocs.io/en/master/user/service_path/index.html
- Config:
populate_by_name: bool = True
validate_assignment: bool = True
- Fields:
- field link_header: str = '<https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' (alias 'Link')
Fiware service used for multi-tenancy
- Constraints:
pattern = w*$
- class filip.models.base.LogLevel(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str,EnumAn enumeration.
- CRITICAL = 'CRITICAL'
- DEBUG = 'DEBUG'
- ERROR = 'ERROR'
- INFO = 'INFO'
- NOTSET = 'NOTSET'
- WARNING = 'WARNING'
- class filip.models.base.NgsiVersion(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str,EnumVersion of NGSI-Specification that should be used within the target system. .. note:: Currently, the library only supports functionality for NGSI-v2
- ld = 'ld'
- v2 = 'v2'
filip.models.mqtt module
Module contains models for MQTT communication with FIWARE’s IoT-Agents.