Skip to main content

Authenticated REST Client for the Kisters Water ecosystem

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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.5.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

kisters.water.rest_client-0.0.5-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kisters.water.rest_client-0.0.5.tar.gz
  • Upload date:
  • Size: 14.2 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.43.0 CPython/3.7.7

File hashes

Hashes for kisters.water.rest_client-0.0.5.tar.gz
Algorithm Hash digest
SHA256 b5ec847245ff2c78cd60d2c65f7782282aef8924a7021e10896b4ad30ea5ed4d
MD5 73ee68f77c1c6710cf3f0f6846249cac
BLAKE2b-256 b93e7b1c15cd5b4d599af71e525328b9d79da068e26441e2be260e8c5dfce0aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kisters.water.rest_client-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.43.0 CPython/3.7.7

File hashes

Hashes for kisters.water.rest_client-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a94d16e6ee1dfc8c9eeee9a9483a7464230113266bcda793fc93aa699a3a0f40
MD5 768543c2b9c7ac747f320a1285537257
BLAKE2b-256 2d2d913d8d33dd8d97bb8ddeffd11ffb240aba4da80a2b7dfd7434da9ad99072

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