Skip to main content

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.

Files for kisters.water.rest-client, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size kisters.water.rest_client-0.0.8-py3-none-any.whl (13.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kisters.water.rest_client-0.0.8.tar.gz (14.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page