Skip to main content

pySWAP - Python wraper for SWAP hydrological model

CD CI Docs codecov pypi downloads Open in GitHub Codespaces DOI

pySWAP is a Python wrapper (not Python implementation) for the SWAP hydrological model (link to the model website). It simplifies the creation of input files, execution of the SWAP model, and analysis and visualization of results. Users can set up and document their models in Jupyter notebooks, enhancing transparency, collaboration, and facilitating community-supported debugging.

Contributing

pySWAP is in the early stages of development so any contributions are highly encouraged. You can open issues, submit pull requests, or initiate discussions on GitHub. For more details on how you can contribute, see the contributing guide (online) and get involved!

Help

Consult pySWAP documentation page for detailed instructions.

Installation

The easiest way to install the package is through pip:

pip install pyswap

Optional features are installed as extras: knmi (KNMI weather data for metfile_from_knmi) and gis (coordinate transformations for Location), e.g.:

pip install "pyswap[knmi,gis]"

You can also clone the repository from github:

git clone --recurse-submodules https://github.com/zawadzkim/pySWAP.git

Notice, that there is the recurse-submodules flag that makes sure additional libraries are also cloned.

Docker

For consistent execution across different systems, you can use Docker:

docker build -t pyswap .
docker run -it --rm -v "$PWD":/workspace pyswap
python your-script.py

For detailed Docker instructions, see the Docker documentation.

Metadata

Release files for pyswap 0.3.10

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

Source distribution (sdist)

Source distribution for pyswap 0.3.10
File Size Uploaded Provenance Actions
pyswap-0.3.10.tar.gz 437.5 kB Without provenance Details for pyswap-0.3.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyswap 0.3.10
File Interpreter ABI Platform Actions
pyswap-0.3.10-py3-none-any.whl Python 3 none any Details for pyswap-0.3.10-py3-none-any.whl

Total release size: 949.5 kB

Release files / pyswap-0.3.10.tar.gz

Download URL pyswap-0.3.10.tar.gz
Size 437.5 kB
Tags Source
SHA-256 checksum
How to use checksums
10d2ec3305f3273ead7a570e7f3d2e20939491acfee55c5dbb8b6c48bda12d63
BLAKE2b-256 checksum
How to use checksums
1d964abf2308860681ae15b002aa719adc2303dde612ef4b5d462495535b378e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / pyswap-0.3.10-py3-none-any.whl

Download URL pyswap-0.3.10-py3-none-any.whl
Size 512.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
134c06e134881f430817728460745fe7d3678b310c3d740802fc393ce697ef0b
BLAKE2b-256 checksum
How to use checksums
1630d1a725e59eb9981654fc3fdb75f421fa9d29183df56e698d340e58e2ebf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for pyswap 0.3.10

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.

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