A command-line utility package for PYWR water resource modeling.
pip install -e .Create a synthetic PYWR model with specified zones and transfers:
pywr-utils create-synthetic-model --zones 5 --transfers 10--zones N: Number of zones to create in the synthetic model (required)--transfers M: Number of transfers to create in the synthetic model (required)
- Clone the repository
- Install in development mode:
pip install -e . - Run the CLI:
pywr-utils --help - One-time, so the pre-push gitleaks hook actually runs:
pip install pre-commit && pre-commit install(needs thegitleaksbinary on PATH —brew install gitleaksor see the install step in.github/workflows/gitleaks.yml). CI runs the same scan on every push/PR regardless, this just catches a leak before it leaves your machine.
MIT License