Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Python SDK for NGSI v2. It allows to quickly develop applications interacting with NGSI v2 API.

License

NotificationsYou must be signed in to change notification settings

smartsdk/ngsi-sdk-python

Repository files navigation

NGSI V2 API

This Python package is automatically generated by theSwagger Codegen project:

  • API version: v2
  • Package version: 1.0.0
  • Build package: class io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to runpip with root permission:sudo pip install git+https://github.com//.git)

Then import the package:

importswagger_client

Setuptools

Install viaSetuptools.

python setup.py install --user

(orsudo python setup.py install to install the package for all users)

Then import the package:

importswagger_client

Getting Started

Please follow theinstallation procedure and then run the following:

from __future__importprint_functionimporttimeimportswagger_clientfromswagger_client.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: fiware_tokenswagger_client.configuration.api_key['X-Auth-Token']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# swagger_client.configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'# create an instance of the API classapi_instance=swagger_client.APIEntryPointApi()try:api_response=api_instance.retrieve_api_resources()pprint(api_response)exceptApiExceptionase:print("Exception when calling APIEntryPointApi->retrieve_api_resources: %s\n"%e)

Documentation for API Endpoints

All URIs are relative tohttp://orion.lab.fiware.org:1026/v2

ClassMethodHTTP requestDescription
APIEntryPointApiretrieve_api_resourcesGET /
AttributeValueApiget_attribute_valueGET /entities/{entityId}/attrs/{attrName}/value
AttributeValueApiupdate_attribute_valuePUT /entities/{entityId}/attrs/{attrName}/value
AttributesApiget_attribute_dataGET /entities/{entityId}/attrs/{attrName}
AttributesApiremove_a_single_attributeDELETE /entities/{entityId}/attrs/{attrName}
AttributesApiupdate_attribute_dataPUT /entities/{entityId}/attrs/{attrName}
BatchOperationsApiqueryPOST /op/query
BatchOperationsApiupdatePOST /op/update
EntitiesApicreate_entityPOST /entities
EntitiesApilist_entitiesGET /entities
EntitiesApiremove_entityDELETE /entities/{entityId}
EntitiesApireplace_all_entity_attributesPUT /entities/{entityId}/attrs
EntitiesApiretrieve_entityGET /entities/{entityId}
EntitiesApiretrieve_entity_attributesGET /entities/{entityId}/attrs
EntitiesApiupdate_existing_entity_attributesPATCH /entities/{entityId}/attrs
EntitiesApiupdate_or_append_entity_attributesPOST /entities/{entityId}/attrs
SubscriptionsApicreate_a_new_subscriptionPOST /subscriptions
SubscriptionsApidelete_subscriptionDELETE /subscriptions/{subscriptionId}
SubscriptionsApiretrieve_subscriptionGET /subscriptions/{subscriptionId}
SubscriptionsApiretrieve_subscriptionsGET /subscriptions
SubscriptionsApiupdate_subscriptionPATCH /subscriptions/{subscriptionId}
TypesApiretrieve_entity_typeGET /types/{entityType}
TypesApiretrieve_entity_typesGET /types/

Documentation For Models

Documentation For Authorization

fiware_token

  • Type: API key
  • API key parameter name: X-Auth-Token
  • Location: HTTP header

Author

About

A Python SDK for NGSI v2. It allows to quickly develop applications interacting with NGSI v2 API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp