Rustflow is a hydrological routing library designed for speed and efficiency. It leverages the power of the Rust programming language to provide fast and reliable computations for modeling water flow through river reaches. The core functionality is implemented in Rust, with a Python interface for easy integration into existing hydrological workflows.
- High Performance: Rust's performance characteristics (speed, memory safety, concurrency) provide significant advantages for computationally intensive hydrological simulations.
- Python Interface: A user-friendly Python API simplifies integration with popular scientific computing libraries like NumPy and Pandas.
- Well-Documented: Comprehensive docstrings and examples in both Rust and Python make it easy to use and extend.
Install the rustflow Python package using pip:
# TODO
pip install rustflow -
Rust: Ensure you have Rust and Cargo installed. If not, follow the instructions at https://www.rust-lang.org/tools/install.
-
Clone: Clone this repository:
git clone https://github.com/darshanbaral/rustflow.git cd rustflow -
Build: Build the Rust library and the Python bindings using
maturin# Install maturin if you dont already have it. pip install maturin maturin developThis will build the rust code, and install the python package.