WQSurrogateModels
wqsurrogatemodels is the installable Python backend for WQI5-based current-state
water quality assessment.
Install
pip install wqsurrogatemodels
The package requires Python 3.10 or newer. Optional surrogate-model libraries are available with:
pip install "wqsurrogatemodels[models]"
Use the direct WQI5 baseline
from wqsurrogatemodels import direct_wqi5_score
score = direct_wqi5_score(do=7.2, bod=2.1, nh3n=0.3, ec=450, ss=12)
Run the API
uvicorn wqsurrogatemodels.api:app --host 0.0.0.0 --port 8001
The primary HTTP contract is under /api/v2/*. Datasets and trained surrogate
artifacts are supplied separately and are not included in the PyPI distribution.
Set PROJECT_ROOT to the directory containing local data/ and models/
directories when running the API outside a source checkout.
Package boundary
The distribution contains the runtime package, dependency metadata, this description, and the Apache 2.0 license. It excludes research datasets, serialized model binaries, generated results, experiment configurations, reproducibility scripts, repository-only tests, and research documentation.
Repository and API documentation: https://github.com/KageRyo/WQSurrogateModels
Metadata
Release files for wqsurrogatemodels 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wqsurrogatemodels-2.3.0.tar.gz | 26.3 kB | With provenance | Details for wqsurrogatemodels-2.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wqsurrogatemodels-2.3.0-py3-none-any.whl | Python 3 | none | any | Details for wqsurrogatemodels-2.3.0-py3-none-any.whl |
Total release size: 52.1 kB
Release files / wqsurrogatemodels-2.3.0.tar.gz
| Download URL | wqsurrogatemodels-2.3.0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a89e0971e29a1216041f707f9fdc6b36b52abb85e6128aa7c3411aadcb427c84
|
|
BLAKE2b-256 checksum How to use checksums |
3bcf0550797f290a4526dc36a969f9907d53b1cf529936d328f27aaea343271d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 31, 2026.
Transparency logRelease files / wqsurrogatemodels-2.3.0-py3-none-any.whl
| Download URL | wqsurrogatemodels-2.3.0-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3cc467701cdd0fd305e8fd966e730079ddef22f8ffab2ac946a1b244050f0d2
|
|
BLAKE2b-256 checksum How to use checksums |
c327cf6f40f3e40e7197aecdc8a45a89b66002107e610d230a74f4a2faafda52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 31, 2026.
Transparency logSecurity for wqsurrogatemodels 2.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wqsurrogatemodels-2.3.0.tar.gz
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 Oct 31, 2026.
Transparency logA 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.