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

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.11
File Size Uploaded Provenance Actions
pyswap-0.3.11.tar.gz 438.0 kB Without provenance Details for pyswap-0.3.11.tar.gz

Built distribution (wheel)

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

Total release size: 950.4 kB

Release files / pyswap-0.3.11.tar.gz

Download URL pyswap-0.3.11.tar.gz
Size 438.0 kB
Tags Source
SHA-256 checksum
How to use checksums
59647df0f736d9243e4895efd018338652c98eed0642b9d9c8b1d63ca1459580
BLAKE2b-256 checksum
How to use checksums
20313dfdf0ec896cbb19d34447bb5dd8f0bfad28210abcc0236e74c0c87fa0c2
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.11-py3-none-any.whl

Download URL pyswap-0.3.11-py3-none-any.whl
Size 512.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6095c11591ac6c42dee49a2ba814af62b6a76c643e60d2793bb17b9bfa795445
BLAKE2b-256 checksum
How to use checksums
d9da8b5a2bfd81b169e215d1fb6aa700b93c38a6294e3100ce6a8626341dce3b
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.11

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