Skip to main content

pytRIBS: Version 1.0.0

pytRIBS is a pre-to-post processing Python package designed to allow users to set up, simulate, and analyze TIN-based Real-time Integrated Basin Simulator (tRIBS) model runs through a Python interface. It provides a modular workflow that mirrors the structure of a tRIBS simulation, spanning data preprocessing, model configuration, execution, and post-processing.

pytRIBS v1.0.0 is the first stable release, aligning the package with the tRIBS v6.0.0 model release. Because it targets the reworked v6.0.0 input structure, this release is not backwards compatible with files produced for earlier tRIBS versions.

Design

pytRIBS has a modular design that follows the stages of a tRIBS model simulation. The core of the package is organized into five preprocessing classes and two simulation classes, each of which draws from a set of shared base classes:

Preprocessing

  • Project — manages the project directory structure and metadata.
  • Soil — soil data processing and generation of soil input files.
  • Land — land use / land cover processing and generation of land use input files.
  • Mesh — TIN mesh generation from watershed and stream network data.
  • Met — meteorological forcing data download and preparation.

Simulation

  • Model — model setup, input file generation, and simulation execution.
  • Results — post-processing, analysis, plotting, and calibration aids for simulation output.

Installation

pytRIBS requires Python 3.11+. Install from source with:

git clone https://github.com/tRIBS-Model/pytRIBS.git
cd pytRIBS
pip install .

Quick Start

from pytRIBS.classes import Project, Model, Results

# Set up a project directory structure
proj = Project(base_dir="my_basin", name="my_basin", epsg=32612)

# Configure and run a model from an existing input file
model = Model(input_file="my_basin.in")

# Analyze the simulation output
results = Results(input_file="my_basin.in")

For complete, end-to-end examples, two companion repositories are available:

  • pytRIBS examples — the reference workflow for learning pytRIBS, building a model of an example watershed from scratch. Covers the updated v1.0.0 input structure, the new snow parameter files (.spf), and the new mesh, spin-up, and plotting tools.
  • tRIBS Workshop Sandbox — developed for classes and workshops but usable by anyone. This example drives a model with observational data and demonstrates the calibration workflows.

Documentation

Release/Version Notes

pytRIBS uses semantic versioning. We record updates of major, minor, and patch versions here.

Contributing

Please open an issue to report bugs or request features. Because much of the functionality here has had limited testing, users are encouraged to verify package behavior for their own applications.

License

pytRIBS is released under the GNU General Public License v2. See LICENSE for details.

Release files for pytRIBS 1.0.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 pytRIBS 1.0.0
File Size Uploaded
pytribs-1.0.0.tar.gz 156.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytRIBS 1.0.0
File Interpreter ABI Platform
pytribs-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 311.1 kB

Release files / pytribs-1.0.0.tar.gz

Download URL pytribs-1.0.0.tar.gz
Size 156.0 kB
Tags Source
SHA-256 checksum
How to use checksums
10b2537e467ee9666b0024628488399f86ff89911cea9c8f2fcb5d3c4f985b74
BLAKE2b-256 checksum
How to use checksums
af978a438238e87c401710caac6009c5f17f4134ca51ecbb4148db8b7b6eb540
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 4, 2026.

Transparency log

Release files / pytribs-1.0.0-py3-none-any.whl

Download URL pytribs-1.0.0-py3-none-any.whl
Size 155.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac861899ddec2d70f57415d73fba49deb8a832af5e33733369b9e197204bcbf1
BLAKE2b-256 checksum
How to use checksums
26a73cf6efa6b9d016ceb975c9fd8126fc861ba77adfe7047cdc969c197c6859
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 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

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

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