waves-lawn-tools (Python)
Free, open-source lawn-watering math for Florida lawns, and a client for the free Waves public API, from Waves Pest Control & Lawn Care in Southwest Florida. No dependencies. Python 3.10 or newer.
- Try it: the free Lawn Watering Calculator runs on this math.
- Use the data: a free public API with no key. See the API docs.
- Same code in JavaScript: waves-lawn-tools on GitHub. The Python math is a port of the JavaScript file, and the tests check that every output matches.
Install
pip install waves-lawn-tools
Watering math
from waves_lawn_tools import derive_irrigation_inches_per_week, build_week_plan
derive_irrigation_inches_per_week(run_minutes=20, watering_days=["Sat"], system_type="spray")
# {'inches_per_week': 0.5, 'run_minutes': 20, 'runs_per_week': 1, 'head_type': 'spray',
# 'rate_in_per_hr': 1.5, 'reason': None}
build_week_plan(
target_inches_per_week=0.75, # this week's turf need (for example ET0 x crop coefficient)
last_week_rain_inches=0.2, # measured rain over the last 7 days
forecast_rain_inches=0, # this week's forecast total
season="peak", # "peak" | "shoulder" | "cool"
restriction={"max_days_per_week": 1}, # the legal ceiling where you are; None = no plan
system_type=["spray"],
rain_known=True,
rain_only_carryover=True,
)
# {'action': 'run', 'events': 1, 'depth_inches': 0.75, 'minutes_per_event': 30,
# 'legal_max_events': 1, 'reasons': [], ...}
It uses the University of Florida (UF/IFAS) typical rates: about 1.5 inches an hour for
spray heads and 0.5 for rotors. action is run, hold (skip turf watering this week) or
unavailable (no legal policy or no target). It declines instead of guessing: drip zones
water beds, not turf, so they get no lawn figure, and with no legal watering policy it
returns no plan rather than invent a limit.
Results are plain dicts with snake_case keys. Numbers follow the JavaScript rules where they
differ from Python (a half rounds up, like Math.round), so Python and JavaScript give the
same answer for the same input.
Call the public API
from waves_lawn_tools import (
get_watering_plan, get_pest_forecast, get_yard_calendar, get_pest_pressure_index,
)
plan = get_watering_plan(zip="34205", head="spray", minutes=20)
plan["plan"]["action"] # 'run', 'hold', 'need_only' or 'unavailable'
plan["text"]["headline"] # a one-line answer for people
forecast = get_pest_forecast(location="bradenton-fl")
[f'{p["label"]}: {p["level"]}' for p in forecast["pests"]]
calendar = get_yard_calendar(month=11, grass="sta")
index = get_pest_pressure_index() # a dict
csv_text = get_pest_pressure_index(format="csv") # the same table as CSV text
get_pest_forecast_locations() lists the city slugs. An error answer raises
WavesApiError with the HTTP status, the API's code (for example unsupported_zip) and
message. A network failure raises the usual urllib.error.URLError. Every call takes
base_url=, opener= and timeout= options. Please cache answers: the data changes a few
times a day at most, and the API allows 120 requests in 15 minutes from one address.
Pest Pressure Index
get_pest_pressure_index() returns county averages of the pest-activity rating (0 None to
5 High) that Waves technicians record at completed service visits. Only groups with 20 or
more visits are listed. It is not a survey and not a forecast. The data is licensed
CC BY 4.0: credit it with the citation
text in the answer. Page: Pest Pressure Index.
Tables for an app
waves_lawn_tools.explore turns the answers into rows for a table or a chart
(pest_forecast_rows, yard_calendar_rows, pressure_index_rows, watering_plan_facts,
friendly_error). The Southwest Florida Lawn & Pest Explorer
Streamlit app is built on them.
Sources
- UF/IFAS AE451, Basic Repairs and Maintenance for Home Landscape Irrigation Systems, and ENH9, Watering Your Florida Lawn: typical spray and rotor application rates
- UF/IFAS guidance to apply 1/2 to 3/4 inch per watering, deep and infrequent
Cite
See CITATION.cff.
To cite the Pest Pressure Index data, use the citation field in the answer.
License
MIT © 2026 Waves Pest Control, LLC.
Metadata
Release files for waves-lawn-tools 1.2.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 | Provenance | Actions |
|---|---|---|---|---|
| waves_lawn_tools-1.2.0.tar.gz | 28.3 kB | With provenance | Details for waves_lawn_tools-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| waves_lawn_tools-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for waves_lawn_tools-1.2.0-py3-none-any.whl |
Total release size: 48.9 kB
Release files / waves_lawn_tools-1.2.0.tar.gz
| Download URL | waves_lawn_tools-1.2.0.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72bec4b7924ddda68ed409cb0af9e5e47ae62131d2a995c7e3c9be2a1a5a430f
|
|
BLAKE2b-256 checksum How to use checksums |
99cce2a0129a8713c858595b4b9eef138d77ca88780c7529cd10cf06950d089b
|
| 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 2, 2026.
Transparency logRelease files / waves_lawn_tools-1.2.0-py3-none-any.whl
| Download URL | waves_lawn_tools-1.2.0-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e1ed8775460f919257a2b615f90967511436816bc5ae5e03a030d5f86c927c9
|
|
BLAKE2b-256 checksum How to use checksums |
9d3f72f7dcb864e24bee3658586ab5d4b27758cf7922b61f723a1e48f28cce83
|
| 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 2, 2026.
Transparency logSecurity for waves-lawn-tools 1.2.0
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.
Attestation for waves_lawn_tools-1.2.0.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 2, 2026.
Transparency logA 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.