Skip to main content

Client for accessing Netilion cloud

Project description

netilion-api

This is a python client to acccess Netilion REST API.

Swagger UI can be found at Staging API or Production API

Please visit our developer portal for further instructions and information: https://developer.netilion.endress.com/

This Python package is automatically generated by the Swagger Codegen project.

Requirements.

Python 3.4+

Usage

import netilion_api
from netilion_api.rest import ApiException

configuration = netilion_api.Configuration()
configuration.host = 'https://api.staging-env.iiot.endress.com/v1'

# FOR BASIC AUTH
configuration.api_key['API-Key'] = 'YOUR_BASIC_API_KEY'
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# !OR!

# FOR OAUTH 2 PASSWORD GRANT
configuration.auth_type = netilion_api.AuthType.OAUTH_PASSWORD_GRANT
configuration.oauth_password_grant = netilion_api.OAuthPasswordGrant(username="YOUR_USERNAME",
                                                                     password="YOUR_PASSWORD",
                                                                     api_key="YOUR_OAUTH_API_KEY", # sometimes referred also as client id
                                                                     api_secret="YOUR_OAUTH_API_SECRET", # sometimes referred also as client secret
                                                                     oauth_token_url="https://api.staging-env.netilion.endress.com/oauth/token")

# full list of APIs see in swagger https://api.staging-env.netilion.endress.com/doc/v1/
api_instance = netilion_api.AssetApi(netilion_api.ApiClient(configuration))

try:
    # full list of requests see in swagger https://api.staging-env.netilion.endress.com/doc/v1/
    api_response = api_instance.get_assets()
    print(api_response)
except ApiException as e:
    print("Exception when calling AssetApi->get_assets: %s\n" % e)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netilion_api-1.2.4.tar.gz (404.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netilion_api-1.2.4-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file netilion_api-1.2.4.tar.gz.

File metadata

  • Download URL: netilion_api-1.2.4.tar.gz
  • Upload date:
  • Size: 404.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for netilion_api-1.2.4.tar.gz
Algorithm Hash digest
SHA256 423b21600c653df6990cb98254bf8f5390f10369dd2b467d6f7456db397c532d
MD5 669ea40fae25a4831d22d10d01c2ed51
BLAKE2b-256 69ff69e34d9099c7918f60f2e84df0b7738050d5b40d4e5d7c234d86f4b5cc1d

See more details on using hashes here.

File details

Details for the file netilion_api-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: netilion_api-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for netilion_api-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 96f443f825e3f511f817d35d7bb86fb61a3d390f4c3b38cf862a8a7b32054806
MD5 9cea9710a0064bcc9b4d246e6e026363
BLAKE2b-256 ebe0e82bdc7062adf4c79cf263e6986a2d4a0da339ead517999f25ed38e2309b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page