Skip to main content

Official Python client for waterworks.ai API

Project description

waterworksai

PyPI version Python Version License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waterworksai-3.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waterworksai-3.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for waterworksai-3.0.0.tar.gz
Algorithm Hash digest
SHA256 87aa91bc091dd3f92ffee79add62ab617ca7df6993faa54236a5c69250501b95
MD5 70794e932d3d799b37413353bfcbc442
BLAKE2b-256 4196b4ae0a6525a9f5029aca40ea7d9895b7f34a788803f8e46d059d0951d454

See more details on using hashes here.

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

Hashes for waterworksai-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 324ed037b4a0c6d04940b340258b398d338126cdd40a9f2e35dbe01e604be3f0
MD5 5710dbd7cab09f4827f466d6c970a224
BLAKE2b-256 209d15831216df33136ce68b97fa7ffb33db8a599f136f4b99b6b825141a84a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page