API Documentation
Subpackages
- filip.clients package
- Subpackages
- Submodules
- filip.clients.base_http_client module
BaseHttpClient
BaseHttpClient.close()
BaseHttpClient.delete()
BaseHttpClient.fiware_headers
BaseHttpClient.fiware_service
BaseHttpClient.fiware_service_path
BaseHttpClient.get()
BaseHttpClient.head()
BaseHttpClient.headers
BaseHttpClient.log_error()
BaseHttpClient.options()
BaseHttpClient.patch()
BaseHttpClient.post()
BaseHttpClient.put()
- Module contents
- filip.models package
- filip.semantics package
- Subpackages
- Submodules
- filip.semantics.semantics_manager module
InstanceRegistry
SemanticsManager
SemanticsManager.class_catalogue
SemanticsManager.datatype_catalogue
SemanticsManager.default_header
SemanticsManager.individual_catalogue
SemanticsManager.instance_registry
SemanticsManager.does_instance_exists()
SemanticsManager.find_fitting_model()
SemanticsManager.generate_cytoscape_for_local_state()
SemanticsManager.get_all_local_instances()
SemanticsManager.get_all_local_instances_of_class()
SemanticsManager.get_class_by_name()
SemanticsManager.get_client()
SemanticsManager.get_datatype()
SemanticsManager.get_default_header()
SemanticsManager.get_entity_from_fiware()
SemanticsManager.get_individual()
SemanticsManager.get_instance()
SemanticsManager.get_iota_client()
SemanticsManager.is_class_name_an_device_class()
SemanticsManager.is_local_state_valid()
SemanticsManager.load_instance()
SemanticsManager.load_instances()
SemanticsManager.load_instances_from_fiware()
SemanticsManager.load_local_state_from_json()
SemanticsManager.merge_local_and_live_instance_state()
SemanticsManager.save_local_state_as_json()
SemanticsManager.save_state()
SemanticsManager.set_default_header()
SemanticsManager.visualize_local_state()
SemanticsManager.was_instance_deleted()
- filip.semantics.semantics_models module
Command
CommandField
DataField
Datatype
DeviceAttribute
DeviceAttributeField
DeviceAttributeType
DeviceField
DeviceProperty
DevicePropertyInstanceLink
Field
InstanceHeader
InstanceIdentifier
InstanceState
RelationField
RuleField
SemanticClass
SemanticClass.header
SemanticClass.id
SemanticClass.metadata
SemanticClass.old_state
SemanticClass.references
SemanticClass.semantic_manager
SemanticClass.add_reference()
SemanticClass.are_rule_fields_valid()
SemanticClass.build_context_entity()
SemanticClass.delete()
SemanticClass.get_all_field_names()
SemanticClass.get_data_field_names()
SemanticClass.get_data_fields()
SemanticClass.get_field_by_name()
SemanticClass.get_fields()
SemanticClass.get_identifier()
SemanticClass.get_invalid_rule_fields()
SemanticClass.get_relation_field_names()
SemanticClass.get_relation_fields()
SemanticClass.get_rule_fields()
SemanticClass.get_type()
SemanticClass.is_valid()
SemanticClass.remove_reference()
SemanticDeviceClass
SemanticDeviceClass.device_settings
SemanticDeviceClass.are_device_settings_valid()
SemanticDeviceClass.build_context_device()
SemanticDeviceClass.build_context_entity()
SemanticDeviceClass.get_command_field_names()
SemanticDeviceClass.get_command_fields()
SemanticDeviceClass.get_device_attribute_field_names()
SemanticDeviceClass.get_device_attribute_fields()
SemanticDeviceClass.get_device_id()
SemanticDeviceClass.get_fields()
SemanticDeviceClass.is_valid()
SemanticIndividual
SemanticMetadata
- filip.semantics.vocabulary_configurator module
ParsingException
VocabularyConfigurator
VocabularyConfigurator.add_ontology_to_vocabulary_as_file()
VocabularyConfigurator.add_ontology_to_vocabulary_as_link()
VocabularyConfigurator.add_ontology_to_vocabulary_as_string()
VocabularyConfigurator.create_vocabulary()
VocabularyConfigurator.delete_source_from_vocabulary()
VocabularyConfigurator.generate_vocabulary_models()
VocabularyConfigurator.get_label_conflicts_in_vocabulary()
VocabularyConfigurator.get_missing_dependencies()
VocabularyConfigurator.get_missing_dependency_statements()
VocabularyConfigurator.get_parsing_logs()
VocabularyConfigurator.is_label_blacklisted()
VocabularyConfigurator.is_label_illegal()
VocabularyConfigurator.is_vocabulary_valid()
- Module contents
- filip.utils package
Submodules
filip.config module
Settings module to set url from .env.filip file. This can also seen as an example for other applications such as webapp that use the library. Using *.env belongs to best practices in containerized applications. Pydantic provides a convenient and clean way to manage environments.
- pydantic settings filip.config.Settings[source]
Bases:
BaseSettings
Settings class that reads environment variables from a local .env.filip file or environment variables. The .env.filip must be located in the current working directory.
Show JSON schema
{ "title": "Settings", "description": "Settings class that reads environment variables from a local `.env.filip`\nfile or environment variables. The `.env.filip` must be located in the\ncurrent working directory.", "type": "object", "properties": { "CB_URL": { "title": "Cb Url", "default": "http://127.0.0.1:1026", "env": [ "ORION_URL", "CB_URL", "CB_HOST", "CONTEXTBROKER_URL", "OCB_URL" ], "env_names": [ "orion_url", "cb_url", "cb_host", "contextbroker_url", "ocb_url" ], "minLength": 1, "maxLength": 65536, "format": "uri", "type": "string" }, "IOTA_URL": { "title": "Iota Url", "default": "http://127.0.0.1:4041", "env": "IOTA_URL", "env_names": "{'iota_url'}", "minLength": 1, "maxLength": 65536, "format": "uri", "type": "string" }, "QL_URL": { "title": "Ql Url", "default": "http://127.0.0.1:8668", "env": [ "QUANTUMLEAP_URL", "QL_URL" ], "env_names": [ "quantumleap_url", "ql_url" ], "minLength": 1, "maxLength": 65536, "format": "uri", "type": "string" } }, "additionalProperties": false }
- Config:
case_sensitive: bool = False
env_file: str = .env.filip
env_file_encoding: str = utf-8
- Fields:
- field CB_URL: AnyHttpUrl = 'http://127.0.0.1:1026'
- Constraints:
minLength = 1
maxLength = 65536
format = uri
- field IOTA_URL: AnyHttpUrl = 'http://127.0.0.1:4041'
- Constraints:
minLength = 1
maxLength = 65536
format = uri
- field QL_URL: AnyHttpUrl = 'http://127.0.0.1:8668'
- Constraints:
minLength = 1
maxLength = 65536
format = uri
filip.types module
Variable types and classes used for better validation
Module contents
filip-Module. See readme or documentation for more information.