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

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.5
File Size Uploaded Provenance Actions
hydrobricks-0.9.5.tar.gz 365.4 kB Without provenance Details for hydrobricks-0.9.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hydrobricks 0.9.5
File Actions
hydrobricks-0.9.5-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for hydrobricks-0.9.5-cp315-cp315-win_amd64.whl
hydrobricks-0.9.5-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.5-cp315-cp315-manylinux_2_28_x86_64.whl
hydrobricks-0.9.5-cp315-cp315-macosx_13_0_arm64.whl CPython 3.15 CPython 3.15 macOS 13.0+ ARM64 Details for hydrobricks-0.9.5-cp315-cp315-macosx_13_0_arm64.whl
hydrobricks-0.9.5-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for hydrobricks-0.9.5-cp314-cp314-win_amd64.whl
hydrobricks-0.9.5-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.5-cp314-cp314-manylinux_2_28_x86_64.whl
hydrobricks-0.9.5-cp314-cp314-macosx_13_0_arm64.whl CPython 3.14 CPython 3.14 macOS 13.0+ ARM64 Details for hydrobricks-0.9.5-cp314-cp314-macosx_13_0_arm64.whl
hydrobricks-0.9.5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for hydrobricks-0.9.5-cp313-cp313-win_amd64.whl
hydrobricks-0.9.5-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.5-cp313-cp313-manylinux_2_28_x86_64.whl
hydrobricks-0.9.5-cp313-cp313-macosx_13_0_arm64.whl CPython 3.13 CPython 3.13 macOS 13.0+ ARM64 Details for hydrobricks-0.9.5-cp313-cp313-macosx_13_0_arm64.whl
hydrobricks-0.9.5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for hydrobricks-0.9.5-cp312-cp312-win_amd64.whl
hydrobricks-0.9.5-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.5-cp312-cp312-manylinux_2_28_x86_64.whl
hydrobricks-0.9.5-cp312-cp312-macosx_13_0_arm64.whl CPython 3.12 CPython 3.12 macOS 13.0+ ARM64 Details for hydrobricks-0.9.5-cp312-cp312-macosx_13_0_arm64.whl
hydrobricks-0.9.5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for hydrobricks-0.9.5-cp311-cp311-win_amd64.whl
hydrobricks-0.9.5-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.5-cp311-cp311-manylinux_2_28_x86_64.whl
hydrobricks-0.9.5-cp311-cp311-macosx_13_0_arm64.whl CPython 3.11 CPython 3.11 macOS 13.0+ ARM64 Details for hydrobricks-0.9.5-cp311-cp311-macosx_13_0_arm64.whl

Total release size: 62.6 MB

Release files / hydrobricks-0.9.5.tar.gz

Download URL hydrobricks-0.9.5.tar.gz
Size 365.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d678ef9d136c51759537955bd37e58e10021eeac43697d884d7820f410f726e1
BLAKE2b-256 checksum
How to use checksums
7d2f380b394f322bf402bca9c0107737f701377e971973aeaa268763cd3e7ff0
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.5-cp315-cp315-win_amd64.whl

Download URL hydrobricks-0.9.5-cp315-cp315-win_amd64.whl
Size 6.2 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
ef2036dea6227654921bbebd5b17af1f2bc8da766b2e9ceaa2e51f51f22b93af
BLAKE2b-256 checksum
How to use checksums
58edb348b6c1ed31421f7f7c871c051c65a1def5c34f9a88865ce1eb5bea4a99
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.5-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.5-cp315-cp315-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
19d05725290e68edfea93b9261405cb007cab0d3db4ef51a06da5b7f2b3b07f5
BLAKE2b-256 checksum
How to use checksums
2607be45ed8796134544677d7d93525ded1118bd8b139c3f9758d18121968b6a
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.5-cp315-cp315-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.5-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
e1648a147ac80d58f468856a46f1ae900ffdecbda173eec1fcc391c84a7aed4c
BLAKE2b-256 checksum
How to use checksums
29a855f58291e018d8ab7322ae72ba65f0134ef556d61811a1398dce31e6b943
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.5-cp314-cp314-win_amd64.whl

Download URL hydrobricks-0.9.5-cp314-cp314-win_amd64.whl
Size 6.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0b9b23592727613219e33705b157592f4e397cef85811cb3bac23b397b879b60
BLAKE2b-256 checksum
How to use checksums
4089b130a64933237221b293269cec10f651c46be5e58b5f4e001fcaca589614
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.5-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.5-cp314-cp314-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1b7e66ca8ca8dca0147e7480bb8095ee6293dd9eb5f56c3a466b9cfcf4800d5f
BLAKE2b-256 checksum
How to use checksums
f50fad18709371521be971e0d629f00c503c07907f0cd39825b23a2b4d63ee1c
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.5-cp314-cp314-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.5-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
52c2616700120c7460b4f298e29ddedb1564b72cfb6957162a66fd39576adbc4
BLAKE2b-256 checksum
How to use checksums
be269b924e662abbc75567bae15d91ab00bd1210317bf0bffd5344bcad164177
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.5-cp313-cp313-win_amd64.whl

Download URL hydrobricks-0.9.5-cp313-cp313-win_amd64.whl
Size 6.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a36f7e49f9c0aa70b13b4cb91e494fccc76af5d0a56286d69923d4bee3d75e6d
BLAKE2b-256 checksum
How to use checksums
1c8099777878ef527b625dea397488a59380d863bc47d182d27349a283b0e172
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.5-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.5-cp313-cp313-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
044e77650a4310cfef4f401f25a3622b6a0db5a61a808e40a56f46b1b9a1a97a
BLAKE2b-256 checksum
How to use checksums
ffae2af49e2a3e630cb89cc4e27230a1f5d4b7fac51392d5c704654f8df4eacf
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.5-cp313-cp313-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.5-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
0d5a4c1b4d3a8871fe9184b85ccac63ff1674735f2b0fe78eb4d642b74772ab9
BLAKE2b-256 checksum
How to use checksums
51400371d1e4fc213f34133a22a752e3ad3c330027070c96f1baaa68914be1c3
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.5-cp312-cp312-win_amd64.whl

Download URL hydrobricks-0.9.5-cp312-cp312-win_amd64.whl
Size 6.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
11411aff7ba9eb413f26cb61d9b69b7123447085dda765258ef583854430c885
BLAKE2b-256 checksum
How to use checksums
24a46e7a41b9a6c6c128389ee99bc34760969ffca0ad7cad70f905e7f7dad3be
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.5-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.5-cp312-cp312-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
de872aa57841876351e5b3bcacf985285cbf5e856303707407db50ccd71d938f
BLAKE2b-256 checksum
How to use checksums
b30c4c0aab53ce053d6b4c6b94e6427b959b7e5e9d5993ef810662a0bff814ff
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.5-cp312-cp312-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.5-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
4134bf744566b43614c23fcb2b77d5a7b275cdfd4305871d7045f79205923f08
BLAKE2b-256 checksum
How to use checksums
3de21c60b6dbe964a9e2311bb516d469284baf09c1fb6e62c3fb344fa16db72f
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.5-cp311-cp311-win_amd64.whl

Download URL hydrobricks-0.9.5-cp311-cp311-win_amd64.whl
Size 6.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
247bad017c75a2e0a132ba73603adfb451f66edbd7724b145afc0dbbaed128f8
BLAKE2b-256 checksum
How to use checksums
b7784d01913735eb80b0ef73c653ccad1479824eca10927933c57974df03a8a2
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.5-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL hydrobricks-0.9.5-cp311-cp311-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
64a87f8c6c4a7ba3d300f3cd114a7f67887b7f3cf8161cbd9f9b8ef71b475586
BLAKE2b-256 checksum
How to use checksums
e158e3da38bbf430c12aeba0e418ba9ea9c3fe3d212134cd38e8970de96930e3
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.5-cp311-cp311-macosx_13_0_arm64.whl

Download URL hydrobricks-0.9.5-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
fff9a89002dbf3e4ebd4f50d74b2ae7067effc52f87d253a53dfa3ae03024830
BLAKE2b-256 checksum
How to use checksums
32fd86cb4e0c45fef5dfb5a75fe884eeeb8fd6d51e43ed145255419b667b5d6e
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.5

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