Skip to main content

Client library for the Kisters Hydraulic Network Storage service

Project description

Hydraulic Network Client Library

This library allows connections to remote hydraulic network REST servers. It supports authentication with OpenID Connect.

Installation

Install with pip.

> python -m pip install kisters.water.hydraulic_network.client

Example Usage

Simple Case

from kisters.water.hydraulic_network.client import Network, RESTClient

network = Network(
    "my-network",
    client=RESTClient(url="http://127.0.0.1:80/")
)

Auth Case

from kisters.water.hydraulic_network.client import (
    Network,
    OpenIDConnect,
    RESTClient,
)

authentication = OpenIDConnect(
    issuer_url="https://keycloak.water.kisters.de/auth/realms/kisters",
    client_id="jesse-test",
    client_secret="c4b0f70d-d2e6-497f-b11c-d49fe806c29b",
)
client = RESTClient(url="http://127.0.0.1:80/", authentication=authentication)
network = Network("my-network", client=client)

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

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