Skip to main content

HydroReOpLLM

User manual · 繁體中文使用手冊 · 繁體中文首頁

HydroReOpLLM simulates reservoir operations from time series of local inflow or weather forcing. A reservoir operator proposes a release. The physical model applies storage and release limits, routes water downstream, and records the decision and water balance for each time step. Operators can use a rule, a prescribed action, or an LLM with local operating guidance.

Install the Python package

In a Python 3.12 virtual environment, install the package from GitHub:

python -m pip install "hydroreopllm @ git+https://github.com/WenyuChiou/HydroReOpLLM.git"

After a version is published to PyPI, use python -m pip install hydroreopllm. To run the installed examples, start in a new directory:

python -c "import shutil, sysconfig; from pathlib import Path; shutil.copytree(Path(sysconfig.get_path('data')) / 'share/llm-reservoir-agent/examples', 'examples')"
reservoir-experiment run examples/daily_offline/single.yaml
reservoir-experiment verify runs/daily-single --require-offline

Install from a clone

Use Git and Python 3.12. The first installation downloads the Python dependencies.

git clone https://github.com/WenyuChiou/HydroReOpLLM.git
cd HydroReOpLLM

On Windows PowerShell:

py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -c environment/requirements-bundled.txt .

On macOS or Linux:

python3.12 -m venv .venv
.venv/bin/python -m pip install -c environment/requirements-bundled.txt .

Run a reservoir and check the output

From the repository root, use the Python executable in the environment you just created. On Windows:

.\.venv\Scripts\python.exe -m llm_reservoir_agent.workflow check examples/daily_offline/single.yaml
.\.venv\Scripts\python.exe -m llm_reservoir_agent.workflow run examples/daily_offline/single.yaml
.\.venv\Scripts\python.exe -m llm_reservoir_agent.workflow verify runs/daily-single --require-offline

On macOS or Linux, use .venv/bin/python in those three commands. This example simulates one synthetic reservoir for four days with a prescribed release of 1 m³/s. It needs no model service or API key. The run creates runs/daily-single/ on your machine. Choose a fresh output directory in the YAML before repeating a run.

Examples and tests in the Git checkout

To run the tests, use the same virtual environment and install the test extra. On Windows:

.\.venv\Scripts\python.exe -m pip install -c environment/requirements-bundled.txt ".[test]"
.\.venv\Scripts\python.exe -m pytest -q

License

HydroReOpLLM is distributed under the BSD 3-Clause License. The bundled HydroCNHS source retains the BSD 3-Clause notice from Chung-Yi Lin. See the source attribution and patch history.

Metadata

Release files for hydroreopllm 0.1.0

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

Source distribution (sdist)

Source distribution for hydroreopllm 0.1.0
File Size Uploaded Provenance Actions
hydroreopllm-0.1.0.tar.gz 257.4 kB With provenance Details for hydroreopllm-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hydroreopllm 0.1.0
File Interpreter ABI Platform Actions
hydroreopllm-0.1.0-py3-none-any.whl Python 3 none any Details for hydroreopllm-0.1.0-py3-none-any.whl

Total release size: 561.4 kB

Release files / hydroreopllm-0.1.0.tar.gz

Download URL hydroreopllm-0.1.0.tar.gz
Size 257.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fbe367d139bd5a735fd356f89888dfce2817f1042955507c44177bf99268862c
BLAKE2b-256 checksum
How to use checksums
5d3ddb28efff3887835e61bc0d702933bef75dbde0c7794c10b61f6e1e3d2332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Release files / hydroreopllm-0.1.0-py3-none-any.whl

Download URL hydroreopllm-0.1.0-py3-none-any.whl
Size 304.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a35d44df4d4e15873c17cc8d2c762c40342ed3ae837e4968058eff1abfc00042
BLAKE2b-256 checksum
How to use checksums
6d52d1399e31194e3c9c0a7b4f474ae0b4cff2a3cc2cb482cc46d36b50bedc7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Security for hydroreopllm 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hydroreopllm-0.1.0.tar.gz

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 Nov 22, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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