Skip to main content

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

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

Source distribution (sdist)

Source distribution for wqsurrogatemodels 2.3.1
File Size Uploaded Provenance Actions
wqsurrogatemodels-2.3.1.tar.gz 26.4 kB With provenance Details for wqsurrogatemodels-2.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 52.2 kB

Release files / wqsurrogatemodels-2.3.1.tar.gz

Download URL wqsurrogatemodels-2.3.1.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
18a01e665029d86d5ab2a3989ccde55fcea0e69a5596d5a32b58030a43f83841
BLAKE2b-256 checksum
How to use checksums
479ff0900816e011dcd12377babf59932dc06ecf51ecda5a2232bd4531b36dc4
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 Nov 5, 2026.

Transparency log

Release files / wqsurrogatemodels-2.3.1-py3-none-any.whl

Download URL wqsurrogatemodels-2.3.1-py3-none-any.whl
Size 25.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64daf536956f1bb9c1906f7b420f53ea8f052ba83038b6dbdd8fce9ce399aca4
BLAKE2b-256 checksum
How to use checksums
b41a83e8b6889405bb34c9547d27e0012a883118dcc57af6957f3cb4784bb8e4
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 Nov 5, 2026.

Transparency log

Security for wqsurrogatemodels 2.3.1

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.

Select from 2 files

Attestation for wqsurrogatemodels-2.3.1.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 Nov 5, 2026.

Transparency log

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