Official Python client for waterworks.ai API
Project description
waterworksai
Official Python client for the waterworks.ai API, providing seamless access to:
- Inflow & Infiltration decomposition
- Water component analysis
- 48-hour flow forecasting
- Leakage & sewer blockage detection
- Pipe survival & remaining useful life (RUL) estimation
Installation
pip install waterworksai
Quick Start
import pandas as pd
from waterworksai import WaterworksClient
from waterworksai.adapters import from_dataframe
from waterworksai.tasks.forecast import Forecast48h
# Load your hourly flow CSV
df = pd.read_csv("hourly_flow.csv")
df["Date"] = pd.to_datetime(df["Date"])
# Convert to canonical TimeSeriesPoint
points = from_dataframe(df, time_col="Date", value_col="Volume")
# Initialize API client
client = WaterworksClient(api_key="YOUR_API_KEY")
# Run 48-hour forecast
result = client.post(
"forecast",
Forecast48h(df=points).payload()
)
print("Forecast MAE:", result["MAE"])
print("Forecast points:", result["forecast"])
Examples
Examples
Full working examples for all tasks are available in the examples/ folder:
-
forecast_48h.py
-
inflow_infiltration.py
-
leakage.py
-
pipe_survival.py
These scripts demonstrate DataFrame integration, API calls, and result handling.
License
MIT © waterworks.ai
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 waterworksai-3.0.0.tar.gz.
File metadata
- Download URL: waterworksai-3.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87aa91bc091dd3f92ffee79add62ab617ca7df6993faa54236a5c69250501b95
|
|
| MD5 |
70794e932d3d799b37413353bfcbc442
|
|
| BLAKE2b-256 |
4196b4ae0a6525a9f5029aca40ea7d9895b7f34a788803f8e46d059d0951d454
|
File details
Details for the file waterworksai-3.0.0-py3-none-any.whl.
File metadata
- Download URL: waterworksai-3.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
324ed037b4a0c6d04940b340258b398d338126cdd40a9f2e35dbe01e604be3f0
|
|
| MD5 |
5710dbd7cab09f4827f466d6c970a224
|
|
| BLAKE2b-256 |
209d15831216df33136ce68b97fa7ffb33db8a599f136f4b99b6b825141a84a6
|