This Python package provides tools for water quality analysis, ensuring that key parameters like temperature, dissolved oxygen, conductivity, turbidity, and pH are within normal ranges. Using Pydantic for data validation, the package ensures accurate input handling and provides detailed explanations when values fall outside acceptable limits.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wqautils-0.1.0.tar.gz.
File metadata
- Download URL: wqautils-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.1 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6327e3f3c3604abd0d9597c957c6a306c40c52b57386a751470bca1528fa2245
|
|
| MD5 |
d37b308e8392b965f0fb1aa7ca3f3d77
|
|
| BLAKE2b-256 |
2411f16aa1d5df16ea599fc8a6d237e9e70c42f179af34f6435b9a2523cac1d0
|
File details
Details for the file wqautils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wqautils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.1 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12ab84efcc10a834460d507e94599e707b002f100961fad719dc11dc98f027d7
|
|
| MD5 |
b94f4204a83a4562b20fe2bf27486db7
|
|
| BLAKE2b-256 |
6bd2187a63a1aa021282011c0ff5e3a7728542cb871b12c1bdb5da4fc0090e21
|