hydopt-client
Python client for the HydOpt hydropower optimization API.
Install
uv add hydopt-client
Authentication
Authenticate with Google Cloud:
gcloud auth application-default login
Quick Start
from hydopt_client.client import Client
client = Client()
# List available partition dates
dates = client.list_partitions()
print(dates) # ["2026-01-01", "2026-01-02", ...]
# Fetch a time series
records = client.series(dates[0], "production")
for record in records:
print(record.name, record.x[0], record.y[0])
# Filter and group results
from hydopt_client.client import Filters, GroupBy
filtered = client.series(
dates[0],
"production",
filters=Filters(country=["norway"]),
group_by=[GroupBy.region],
)
Available Methods
| Method | Description |
|---|---|
list_partitions() |
List available partition dates |
series(asof, category1, ...) |
Query time-series data |
diff(category1, from, to, ...) |
Compare two partitions |
static(category1, ...) |
Query static dataset |
realized(category1, ...) |
Query realized dataset |
catchments(asof) |
Fetch catchment geometries |
orders(asof) |
Fetch energy orders |
object_report(source, target) |
Compare two partition objects |
Metadata
Release files for hydopt-client 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hydopt_client-0.0.3.tar.gz | 81.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hydopt_client-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 87.2 kB
Release files / hydopt_client-0.0.3.tar.gz
| Download URL | hydopt_client-0.0.3.tar.gz |
|---|---|
| Size | 81.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc74228957cb843179b7ba66532a4385196341de970adb89410c0dd6af2d88b0
|
|
BLAKE2b-256 checksum How to use checksums |
5a7892a4e8e947e1754c5c4cc69d2949f082012580600c3a5fb1a7c3aa2d4de8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logRelease files / hydopt_client-0.0.3-py3-none-any.whl
| Download URL | hydopt_client-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dc5e1a9e0c80db71626cb251440f2987663f06e22f08fd5cd2cacbbeb013f08
|
|
BLAKE2b-256 checksum How to use checksums |
bec8aedf39818ee0413fa19f92ec51039580145fe3525e0850c5f28015c8a6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency log