Skip to main content

hydrobricks

A modular framework for building, calibrating and comparing conceptual hydrological models.

DOI Documentation Status Python Tests Python Wheels pre-commit.ci status Codacy Badge

hydrobricks assembles hydrological models from reusable components: storages, land covers, snowpacks and glaciers (the bricks), the processes acting on them, and the fluxes connecting them. The established models it ships with (Socont, GR4J, GR6J, HBV, PREVAH) are built from the same components, so they share one numerical core and one workflow. Changing a single process or comparing whole model structures then becomes a matter of configuration rather than a new code base. The computation engine is written in C++ and driven from Python.

Features

  • Ready-made models: Socont, GR4J, GR6J, HBV-96 and PREVAH, plus custom structures declared in YAML or Python.
  • Semi-distributed: catchments divided into hydrological units (e.g. elevation bands), with land cover fractions per unit.
  • Snow and glaciers: several snowmelt and ice-melt formulations, snow redistribution, and glacier evolution over time (Δh parametrization, area scaling); land cover changes can also be prescribed.
  • Pre-processing: catchment delineation and discretization from a DEM, potential solar radiation, and spatialization of station or gridded meteorological data.
  • Calibration and evaluation: calibration with SPOTPY, and objective functions on discharge, snow cover and glacier mass balance.
  • Project files: a whole setup in a single YAML file, run from Python or from the hydrobricks command line; study files run the same comparison over many catchments, models and objectives.
  • Numerical choice: several ODE solvers (explicit and implicit) for the continuous model formulations.

Installation

Wheels are available for Linux (x86_64), Windows (x86_64) and macOS (Apple Silicon, macOS 13.3 or later). On other platforms, pip builds from the source distribution.

pip install hydrobricks          # core
pip install "hydrobricks[all]"   # with pre-processing, calibration and plotting

Quick start

hydrobricks init project.yaml       # interactive creation
hydrobricks validate project.yaml   # check the configuration
hydrobricks run project.yaml        # run and report the scores

or from Python:

import hydrobricks as hb

project = hb.load_project("project.yaml")
discharge = project.run()
best = project.calibrate()

Resources

Citation

If you use hydrobricks in your work, please cite it: https://doi.org/10.5281/zenodo.7139899 (citation metadata in CITATION.cff).

License

MIT

Metadata

Release files for hydrobricks 0.9.6

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

Source distribution (sdist)

Source distribution for hydrobricks 0.9.6
File Size Uploaded Provenance Actions
hydrobricks-0.9.6.tar.gz 371.2 kB Without provenance Details for hydrobricks-0.9.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hydrobricks 0.9.6
File Actions
hydrobricks-0.9.6-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for hydrobricks-0.9.6-cp315-cp315-win_amd64.whl
hydrobricks-0.9.6-cp315-cp315-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64 Details for hydrobricks-0.9.6-cp315-cp315-manylinux_2_28_x86_64.whl
hydrobricks-0.9.6-cp315-cp315-macosx_13_0_arm64.whl CPython 3.15 CPython 3.15 macOS 13.0+ ARM64 Details for hydrobricks-0.9.6-cp315-cp315-macosx_13_0_arm64.whl
hydrobricks-0.9.6-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for hydrobricks-0.9.6-cp314-cp314-win_amd64.whl
hydrobricks-0.9.6-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for hydrobricks-0.9.6-cp314-cp314-manylinux_2_28_x86_64.whl
hydrobricks-0.9.6-cp314-cp314-macosx_13_0_arm64.whl CPython 3.14 CPython 3.14 macOS 13.0+ ARM64 Details for hydrobricks-0.9.6-cp314-cp314-macosx_13_0_arm64.whl
hydrobricks-0.9.6-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for hydrobricks-0.9.6-cp313-cp313-win_amd64.whl
hydrobricks-0.9.6-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for hydrobricks-0.9.6-cp313-cp313-manylinux_2_28_x86_64.whl
hydrobricks-0.9.6-cp313-cp313-macosx_13_0_arm64.whl CPython 3.13 CPython 3.13 macOS 13.0+ ARM64 Details for hydrobricks-0.9.6-cp313-cp313-macosx_13_0_arm64.whl
hydrobricks-0.9.6-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for hydrobricks-0.9.6-cp312-cp312-win_amd64.whl
hydrobricks-0.9.6-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for hydrobricks-0.9.6-cp312-cp312-manylinux_2_28_x86_64.whl
hydrobricks-0.9.6-cp312-cp312-macosx_13_0_arm64.whl CPython 3.12 CPython 3.12 macOS 13.0+ ARM64 Details for hydrobricks-0.9.6-cp312-cp312-macosx_13_0_arm64.whl
hydrobricks-0.9.6-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for hydrobricks-0.9.6-cp311-cp311-win_amd64.whl
hydrobricks-0.9.6-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for hydrobricks-0.9.6-cp311-cp311-manylinux_2_28_x86_64.whl
hydrobricks-0.9.6-cp311-cp311-macosx_13_0_arm64.whl CPython 3.11 CPython 3.11 macOS 13.0+ ARM64 Details for hydrobricks-0.9.6-cp311-cp311-macosx_13_0_arm64.whl

Total release size: 62.8 MB

Release files / hydrobricks-0.9.6.tar.gz

Download URL hydrobricks-0.9.6.tar.gz
Size 371.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e86c0f1620ac1a8b233091d4c9de986cfb4be6353ed5a53fe76b809e085574f2
BLAKE2b-256 checksum
How to use checksums
58486f356958199775cf22f44a25537c285d0086497b4e78fe335729c09a476f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp315-cp315-win_amd64.whl

Download URL hydrobricks-0.9.6-cp315-cp315-win_amd64.whl
Size 6.2 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
4946d1659d3a14ea07c2f2f1f75d565b16d5a97acfcefdb7943e873f7a9d750b
BLAKE2b-256 checksum
How to use checksums
c1f018c3fc55c8fb155e52ac223803cb184387f67ec5bf9b404d369d7d3f6e83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.6-cp315-cp315-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a643b4a9470cfd815b0f7bf6ad863cff91e6ced1999b35b214df0e9bb1daa995
BLAKE2b-256 checksum
How to use checksums
40570d7b4c4429c1731a6cdcdb730715ed0f0f92b58327892e3d99a5a337e6a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp315-cp315-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.6-cp315-cp315-macosx_13_0_arm64.whl
Size 2.7 MB
Tags CPython 3.15 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
604f855186be0fb3a9e14cc3322031c09200249d079ca4fac33c3586748dde30
BLAKE2b-256 checksum
How to use checksums
1bab262dff6316d0f702e046fc1699a4f518339d6ed2d97ccacdc9f28d7d4e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp314-cp314-win_amd64.whl

Download URL hydrobricks-0.9.6-cp314-cp314-win_amd64.whl
Size 6.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0cc40cf9515b432e82f9c8059c1baac1c252fb412d50d7e420193cf3fc635381
BLAKE2b-256 checksum
How to use checksums
76e3f6a1660bf678103c05c4328d1f7e816ff5ee84cd7646ba4ce5a290b98c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.6-cp314-cp314-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7439b43eeff6976b84a66873ca3728c1787a58b112ec87faae418a36e6552f84
BLAKE2b-256 checksum
How to use checksums
bb9dc64c2f5c257194446ddaf32935c7d4a39ed5c2251cdd5c539c0016111e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp314-cp314-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.6-cp314-cp314-macosx_13_0_arm64.whl
Size 2.7 MB
Tags CPython 3.14 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
0df091954a8f7607648104cd895e64327fb1de2631a8bfff7bdf932bc84bf675
BLAKE2b-256 checksum
How to use checksums
7a8996fb2723ebe8154d75e1d21a1f2155f955be012b0999adc8ae7b6ded5c01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp313-cp313-win_amd64.whl

Download URL hydrobricks-0.9.6-cp313-cp313-win_amd64.whl
Size 6.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
37942dc742b0d7f89a228cdb54570e69470301f59f895c273039ab70436142a5
BLAKE2b-256 checksum
How to use checksums
bd501aa0baa010159e98088db3f341fe242c99caacb57d8b57edd7b603e5bded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.6-cp313-cp313-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
842842642215b9ea6cedb7a6fd894d559fa31b700fd8086439566483d0279bbc
BLAKE2b-256 checksum
How to use checksums
a603bf1170d21bf1252a1ce3ea5728434a1903910e908eb3d2d7399999c1f81c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp313-cp313-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.6-cp313-cp313-macosx_13_0_arm64.whl
Size 2.7 MB
Tags CPython 3.13 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
c5f9f4d0cd368fd4c273be9307d20e5597d499a4d6dfcce08581aaf0930dd3af
BLAKE2b-256 checksum
How to use checksums
2336660cc47f1e98df05737142e8fe5906bd4ffc0a0c7675db3695edb9d35f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp312-cp312-win_amd64.whl

Download URL hydrobricks-0.9.6-cp312-cp312-win_amd64.whl
Size 6.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
0255008c1bf839399fcc22947099aa9a2826e8a52e98ffe4973a98bb452ca5d7
BLAKE2b-256 checksum
How to use checksums
a76e48cd0aa67bcd61f619d8d0714404f89dcb15b3b4fe115c5d570078943cb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.6-cp312-cp312-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cb4a3e48f14e2ac981d4448a8547b8b58db0f8e1145df490416894eecc75a858
BLAKE2b-256 checksum
How to use checksums
a8d5ed820ad33adbc3766af0fda5147d32096c30c6693552769013f56eb28ebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp312-cp312-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.6-cp312-cp312-macosx_13_0_arm64.whl
Size 2.7 MB
Tags CPython 3.12 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
3cab5f4822b87a960c6853a85bdea35dcea191e91a34a82c0c791b3a51c483a4
BLAKE2b-256 checksum
How to use checksums
b5781747c411a18dd2ab67826aafab1db5dd2a6332b2383421f323f5e9dba062
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp311-cp311-win_amd64.whl

Download URL hydrobricks-0.9.6-cp311-cp311-win_amd64.whl
Size 6.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0afb04b2477e9a033da2a1364ab5ea483467712596f3e4e8a862243ee423529b
BLAKE2b-256 checksum
How to use checksums
30e547694f4c7a069c223ba4cc2c7192f6835d889a2516f29d62169ed742fa61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.6-cp311-cp311-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
645b54a7eb453c6639bdb3ce65b1a1de00e3eb061e5974639b6be4d785bf2adc
BLAKE2b-256 checksum
How to use checksums
eabce2e6c78b9db2e71faec43ac9d4bd7615ede3e8a70e2642cd97ecc67e27c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hydrobricks-0.9.6-cp311-cp311-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.6-cp311-cp311-macosx_13_0_arm64.whl
Size 2.7 MB
Tags CPython 3.11 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
cfeaab18cd9fe2b939b447f0b152422ca613bb6758fdee40b673262f5d590e52
BLAKE2b-256 checksum
How to use checksums
1f3460083e9f615b9b4550220fd6c0dfd1de6015e35e6b738030874e1ba8a2ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hydrobricks 0.9.6

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.

Release history Release notifications | RSS feed

This release

0.9.6 This release

16 release files No 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