Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hydopt-client 0.0.2
File Size Uploaded
hydopt_client-0.0.2.tar.gz 34.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hydopt-client 0.0.2
File Interpreter ABI Platform
hydopt_client-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 38.9 kB

Release files / hydopt_client-0.0.2.tar.gz

Download URL hydopt_client-0.0.2.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b7501f9bdbdca4fd08d917c74e257ecb3c7359291e5d9d918e81c6829fd9265d
BLAKE2b-256 checksum
How to use checksums
ffcec261c0d79ca10043a0e30b494e266feaa2335e4d94d1f70806e905d622b2
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 17, 2026.

Transparency log

Release files / hydopt_client-0.0.2-py3-none-any.whl

Download URL hydopt_client-0.0.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fafb01c486f4da74deda2b2c2ab5adc1f8d2432c2e1dd22413b2bd55e6e43604
BLAKE2b-256 checksum
How to use checksums
2fa2c9b4e2f91fb8264d8b6a05a59cecf46cfcd859130a90975b918210d7b5e6
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 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page