Authenticated REST Client for the Kisters Water ecosystem
Project description
Kisters REST Client Library
This library allows connections to Kisters servers. It supports authentication with OpenID Connect.
Installation
Install with pip
:
> python -m pip install kisters.water.rest_client
Example Usage
from kisters.water.rest_client import RESTClient
from kisters.water.rest_client.auth import OpenIDConnect
# Instantiate the authentication class with credentials
authentication = OpenIDConnect(
client_id="jesse-test",
client_secret="c4b0f70d-d2e6-497f-b11c-d49fe806c29b",
)
# Instantiate the client class with the service url and authentication
client = RESTClient(
url="https://jesse-test.hydraulic-network.kisters.cloud",
authentication=authentication
)
# Verify the client is set up correctly
# Note: If you have not created any networks yet, this could be an empty list
client.get("rest/networks")
# ['my-network', 'my-other-network', ...]
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
Built Distribution
Close
Hashes for kisters.water.rest_client-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0bf17487eb4db42166aece3361ddc6161efa0fb1b7946e0a4905772676c9315 |
|
MD5 | 922f256f7bcc64a12b52634d583f4f1b |
|
BLAKE2b-256 | e960694efe20149cee3a304ecc10c7c7bb60ad2db0eeb6ceb3f3a4dcf4511eef |
Close
Hashes for kisters.water.rest_client-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ea6fc465e57022990a1b2f09b38c92a80ed1d278808d10ad8f961c165b94fa |
|
MD5 | 9c752980637f5d362869329b6d7d2886 |
|
BLAKE2b-256 | 57c32ddd7df1120ed8f1484bd0360f023a468f016585e4f619b396867e0e5b5d |