Skip to main content

HOLMES

ci holmes ci holmes-rs holmes-hydro pypi version holmes-rs pypi version Supported Python Version Documentation

HOLMES (HydrOLogical Modeling Educational Software) is a software developed to teach operational hydrology. It is developed at Université Laval, Québec, Canada.

📖 Documentation · 📦 PyPI

The dashboard guides students through a modeling pipeline — stations → weather → model → calibration → simulation → projection — starting from an interactive map of hydrometric stations. The backend is Starlette, the frontend is vanilla JavaScript with an Elm architecture (d3 and Leaflet), and communication is mostly over WebSocket. All numerical computation runs in holmes-rs, a Rust extension.

Usage

Installation

pip install holmes-hydro

Running HOLMES

After installation, start the dashboard with:

holmes run

The web interface opens in your browser by itself, at http://127.0.0.1:8000 (debug mode does not open it).

Other commands:

holmes experiment   # run batch calibration experiments
holmes download     # maintainers: build every data product from its true source
holmes package      # maintainers: zip the built products into data-YYYY-MM-DD.zip

Data

The server never builds data. Starting it with holmes run compares the newest data-YYYY-MM-DD.zip asset on the repo's rolling data release against its local copy, and downloads and extracts the archive if it is newer — the terminal shows the progress, old data keeps being served during the swap, and no credentials are ever needed to run the app. Data lives in the per-user data directory (~/.local/share/holmes on Linux, ~/Library/Application Support/holmes on macOS, %LOCALAPPDATA%\holmes\holmes on Windows), overridable with HOLMES_DATA_DIR; the map tiles ship in the archive too, so nothing is fetched after the sync.

Rebuilding the archive is the maintainer path. holmes download builds every product incrementally from its true source: daily re-runs only fetch the current year (plus the previous year in January) for ERA5 and the ministry grid, always refresh the small streamflow files, recompute the cheap derived products, and skip the static ones (station data, projections). It needs the download extra (pip install 'holmes-hydro[download]', which carries the heavy geo dependencies) and, on a cold ERA5 cell cache, CDS credentials in ~/.cdsapirc or the CDSAPI_URL/CDSAPI_KEY environment variables. holmes package then zips the built products into the dated archive. A nightly GitHub Actions workflow (.github/workflows/data.yml, 07:00 UTC) runs both and replaces the dated zip on the data release; it is toggled with the DATA_REFRESH_ENABLED repository variable (Settings → Actions → Variables) and can always be run manually via workflow dispatch.

Configuration

Customize the server by creating a .env file:

DEBUG=True                  # Enable debug mode (default: False)
RELOAD=True                 # Enable auto-reload on code changes (default: False)
HOST=127.0.0.1              # Server host (default: 127.0.0.1)
PORT=8000                   # Server port (default: 8000)
HOLMES_DATA_DIR=data        # Data directory (default: the per-user data
                            # directory, e.g. ~/.local/share/holmes on Linux)
HOLMES_SKIP_DATA_SYNC=True  # Skip the startup data sync (default: False)

A repo checkout should set HOLMES_DATA_DIR=data to keep using the repo-local data/ directory.

Development

Setup

  1. Install uv:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Clone and install in development mode:

    git clone https://github.com/antoinelb/holmes.git
    cd holmes
    uv sync
    

Running

uv run holmes run

Or activate the virtual environment and run directly:

source .venv/bin/activate
holmes run

Code Quality

make static-analysis

Tests

make test       # unit + integration (100% coverage) and the Rust suites
make test-e2e   # Playwright end-to-end tests

References

Metadata

Release files for holmes-hydro 4.5.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 holmes-hydro 4.5.2
File Size Uploaded Provenance Actions
holmes_hydro-4.5.2.tar.gz 41.1 MB With provenance Details for holmes_hydro-4.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for holmes-hydro 4.5.2
File Interpreter ABI Platform Actions
holmes_hydro-4.5.2-py3-none-any.whl Python 3 none any Details for holmes_hydro-4.5.2-py3-none-any.whl

Total release size: 41.4 MB

Release files / holmes_hydro-4.5.2.tar.gz

Download URL holmes_hydro-4.5.2.tar.gz
Size 41.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4cbad26f7ee029f5e8d466e1bb6e2644bee2aed47c4f3f19199396213078fd05
BLAKE2b-256 checksum
How to use checksums
d70636a50a1f43e01b0b21b849c77dae30d99ff763d3ae280b9bc6516daa8da7
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 Sep 26, 2026.

Transparency log

Release files / holmes_hydro-4.5.2-py3-none-any.whl

Download URL holmes_hydro-4.5.2-py3-none-any.whl
Size 337.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03a3c9a4aeb91630cdf3b7af77bb131fab6e684e90fe2ea38ac5d20b21645812
BLAKE2b-256 checksum
How to use checksums
977fd8dcc4cfc907c0b67b8f51e5f7c9b271b9c429f5e5861050a150c0cd274c
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 Sep 26, 2026.

Transparency log

Security for holmes-hydro 4.5.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.

Full provenance

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

Select from 2 files

Attestation for holmes_hydro-4.5.2.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 Sep 26, 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.

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