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.

Source Distribution

kisters.water.rest_client-0.0.8.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

kisters.water.rest_client-0.0.8-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file kisters.water.rest_client-0.0.8.tar.gz.

File metadata

  • Download URL: kisters.water.rest_client-0.0.8.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

File hashes

Hashes for kisters.water.rest_client-0.0.8.tar.gz
Algorithm Hash digest
SHA256 f96de6a7799e1f34549116521fc3c5d060104005fedfa709992bde87b1268343
MD5 a3ecb4ab686b5eb295aaaf1c288c9355
BLAKE2b-256 283ed76b050443aa63750473d78bb0f27b2d490aba2a1ab1be8bdfa5b1f87253

See more details on using hashes here.

File details

Details for the file kisters.water.rest_client-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: kisters.water.rest_client-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

File hashes

Hashes for kisters.water.rest_client-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b09a4a664f099fcb8ef355e9f46dad56f0e17c063221b4d1aa5d19e4063c5120
MD5 74f8602496fb976156d70f81d4b91ec2
BLAKE2b-256 ae8870e0f2af3a33fb2250f6c778997258b67ffeab6ede9bdcc7031503dc4301

See more details on using hashes here.

Supported by

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