This project has been archived by its maintainers, and is no longer receiving any updates.
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.network_store.client.network
# or you if also need the water models
> python -m pip install kisters.network_store.client.network[water]
Example Usage
Create the Kisters REST Client
from kisters.water.rest_client import RESTClient
from kisters.water.rest_client.auth import OpenIDConnect
rest_client = RESTClient(
url="https://jesse-test.hydraulic-network.kisters.cloud",
authentication=OpenIDConnect(
client_id="jesse-test",
client_secret="c4b0f70d-d2e6-497f-b11c-d49fe806c29b",
),
)
# Verify the client is set up correctly
# Note: If you have not created any networks yet, this could be an empty list
rest_client.get(("rest", "networks"))
# ['my-network', 'my-other-network', ...]
Connect to a Network
from kisters.network_store.client.network import Network
# Instantiate the Network class with the network name and client
network = Network("my-network", rest_client)
# You can now access the properties of the network
network.get_nodes()
# [
# FlowBoundary(
# created=datetime.datetime(2019, 6, 27, 16, 53, 5),
# uid='flow_boundary',
# display_name='flow_boundary',
# location={'x': 0.0, 'y': 0.0, 'z': 0.0},
# schematic_location={'x': 0.0, 'y': 0.0, 'z': 0.0})
# ,
# ...
# ]
Metadata
Release files for kisters.network-store.client.network 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kisters.network_store.client.network-0.4.2.tar.gz | 17.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kisters.network_store.client.network-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.4 kB
Release files / kisters.network_store.client.network-0.4.2.tar.gz
| Download URL | kisters.network_store.client.network-0.4.2.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2bc386539ca963b21602e1ddd752811abf9857074923a6ebfb10d44c5b09301
|
|
BLAKE2b-256 checksum How to use checksums |
ade2e05ba70e57e4b7933ed9267b145352119acd67427bc6232e1048091339b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / kisters.network_store.client.network-0.4.2-py3-none-any.whl
| Download URL | kisters.network_store.client.network-0.4.2-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a94a38aabe85623c750ae9c7b6f8c40e44a32e726ff1d04f42ea6f296576343
|
|
BLAKE2b-256 checksum How to use checksums |
3d0c177fa89f876e363abb0ce041d63878c4d753a89059d03aae239d4ff841da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for kisters.network-store.client.network 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.