netilion-api


Namenetilion-api JSON
Version 1.2.2 PyPI version JSON
download
home_page
SummaryClient for accessing Netilion cloud
upload_time2023-05-14 15:55:22
maintainer
docs_urlNone
author
requires_python>=3.4
licenseCopyright (c) 2018 The Python Packaging Authority Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords netilion cloud iiot automation e+h endress+hauser
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # netilion-api

This is a python client to acccess [Netilion](https://netilion.endress.com/) REST API.

Swagger UI can be found at [Staging API](https://api.staging-env.netilion.endress.com/doc/v1/)
or [Production API](https://api.netilion.endress.com/doc/v1/)

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](https://github.com/swagger-api/swagger-codegen) project.

## Requirements.

Python 3.4+

## Usage

```python
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)

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "netilion-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "Netilion,Cloud,IIoT,Automation,E+H,Endress+Hauser",
    "author": "",
    "author_email": "Andrey Dodonov <Andrey.Dodonov@endress.com>",
    "download_url": "https://files.pythonhosted.org/packages/f1/53/d2fa7588ec4e6c1c202aba1f47a8c558374cf8288e42724b43b0e903e220/netilion_api-1.2.2.tar.gz",
    "platform": null,
    "description": "# netilion-api\r\n\r\nThis is a python client to acccess [Netilion](https://netilion.endress.com/) REST API.\r\n\r\nSwagger UI can be found at [Staging API](https://api.staging-env.netilion.endress.com/doc/v1/)\r\nor [Production API](https://api.netilion.endress.com/doc/v1/)\r\n\r\nPlease visit our developer portal for further instructions and information: https://developer.netilion.endress.com/ \r\n\r\nThis Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project.\r\n\r\n## Requirements.\r\n\r\nPython 3.4+\r\n\r\n## Usage\r\n\r\n```python\r\nimport netilion_api\r\nfrom netilion_api.rest import ApiException\r\n\r\nconfiguration = netilion_api.Configuration()\r\nconfiguration.host = 'https://api.staging-env.iiot.endress.com/v1'\r\n\r\n# FOR BASIC AUTH\r\nconfiguration.api_key['API-Key'] = 'YOUR_BASIC_API_KEY'\r\nconfiguration.username = 'YOUR_USERNAME'\r\nconfiguration.password = 'YOUR_PASSWORD'\r\n\r\n# !OR!\r\n\r\n# FOR OAUTH 2 PASSWORD GRANT\r\nconfiguration.auth_type = netilion_api.AuthType.OAUTH_PASSWORD_GRANT\r\nconfiguration.oauth_password_grant = netilion_api.OAuthPasswordGrant(username=\"YOUR_USERNAME\",\r\n                                                                     password=\"YOUR_PASSWORD\",\r\n                                                                     api_key=\"YOUR_OAUTH_API_KEY\", # sometimes referred also as client id\r\n                                                                     api_secret=\"YOUR_OAUTH_API_SECRET\", # sometimes referred also as client secret\r\n                                                                     oauth_token_url=\"https://api.staging-env.netilion.endress.com/oauth/token\")\r\n\r\n# full list of APIs see in swagger https://api.staging-env.netilion.endress.com/doc/v1/\r\napi_instance = netilion_api.AssetApi(netilion_api.ApiClient(configuration))\r\n\r\ntry:\r\n    # full list of requests see in swagger https://api.staging-env.netilion.endress.com/doc/v1/\r\n    api_response = api_instance.get_assets()\r\n    print(api_response)\r\nexcept ApiException as e:\r\n    print(\"Exception when calling AssetApi->get_assets: %s\\n\" % e)\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2018 The Python Packaging Authority  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Client for accessing Netilion cloud",
    "version": "1.2.2",
    "project_urls": {
        "API": "https://api.staging-env.netilion.endress.com/doc/v1/",
        "Homepage": "https://staging-env.netilion.endress.com/"
    },
    "split_keywords": [
        "netilion",
        "cloud",
        "iiot",
        "automation",
        "e+h",
        "endress+hauser"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "310e7f35ebb46552216d22acb97c3d02c246ac35fe770a37b49c6f08cd32e2be",
                "md5": "a96da83c8302117eee8bf3cf45636805",
                "sha256": "6d18411f80486983f16a2be6de34bd698ba6339fae8b2b82021752a330939afd"
            },
            "downloads": -1,
            "filename": "netilion_api-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a96da83c8302117eee8bf3cf45636805",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 1013342,
            "upload_time": "2023-05-14T15:55:20",
            "upload_time_iso_8601": "2023-05-14T15:55:20.321552Z",
            "url": "https://files.pythonhosted.org/packages/31/0e/7f35ebb46552216d22acb97c3d02c246ac35fe770a37b49c6f08cd32e2be/netilion_api-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f153d2fa7588ec4e6c1c202aba1f47a8c558374cf8288e42724b43b0e903e220",
                "md5": "2646900c3fbcadfce307d481147e654e",
                "sha256": "5e2876c3de8549fd5b9e74233ba8c5e522305670b66829ae100083c16e516183"
            },
            "downloads": -1,
            "filename": "netilion_api-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2646900c3fbcadfce307d481147e654e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 381359,
            "upload_time": "2023-05-14T15:55:22",
            "upload_time_iso_8601": "2023-05-14T15:55:22.752611Z",
            "url": "https://files.pythonhosted.org/packages/f1/53/d2fa7588ec4e6c1c202aba1f47a8c558374cf8288e42724b43b0e903e220/netilion_api-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-14 15:55:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "netilion-api"
}
        
Elapsed time: 0.06535s