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
Close
Hashes for kisters.water.hydraulic_network.client-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a25cad3d24506b31d61300a528b8f6069e5cf84d7564c32b788cc059468d9e |
|
MD5 | 6a387f226fb271213295512540603c39 |
|
BLAKE2b-256 | 5b7b0a057ce3331f86ee4700fd6f96a202e06ab6e5e662651f8613023a3ab389 |
Close
Hashes for kisters.water.hydraulic_network.client-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 777e87a59c684e2f5233014f3b570ebc75a5934e82a38740502ce24a2f07b0cc |
|
MD5 | 4d0c1b73343a87d697abbf9ec296945d |
|
BLAKE2b-256 | 73a0eef9c763b943f218603cffb325462b09754a06b981ab409f6291eb26b23d |