Water Quality Analysis Utils
This Python package provides tools for analyzing water quality parameters such as temperature, dissolved oxygen, conductivity, turbidity, and pH using Pydantic for validation.
Features
- Pydantic models for input validation
- Functions to check if parameters are within safe ranges
- Detailed messages explaining out-of-range values
- Test suite included with pytest
Installation
poetry install
Usage
from wqautils import WaterQualityParameters, check_water_quality
params = WaterQualityParameters(temperature=20, dissolved_oxygen=8, conductivity=500, turbidity=2, ph=7)
results = check_water_quality(params)
print(results)
Tests
Run tests with:
pytest
Metadata
Release files for wqautils 0.1.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 | |
|---|---|---|---|
| wqautils-0.1.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wqautils-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / wqautils-0.1.0.tar.gz
| Download URL | wqautils-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6327e3f3c3604abd0d9597c957c6a306c40c52b57386a751470bca1528fa2245
|
|
BLAKE2b-256 checksum How to use checksums |
2411f16aa1d5df16ea599fc8a6d237e9e70c42f179af34f6435b9a2523cac1d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.13.1 Darwin/24.3.0
|
Release files / wqautils-0.1.0-py3-none-any.whl
| Download URL | wqautils-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12ab84efcc10a834460d507e94599e707b002f100961fad719dc11dc98f027d7
|
|
BLAKE2b-256 checksum How to use checksums |
6bd2187a63a1aa021282011c0ff5e3a7728542cb871b12c1bdb5da4fc0090e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.13.1 Darwin/24.3.0
|