SynopticPy: Synoptic API for Python#

Synoptic’s Weather API provides real-time and historical surface-based weather and environmental observations for thousands of mesonet stations, and the open-access data is free. More data and enhanced services may be purchased (from Synoptic, not me).

I’m a Synoptic user. I wrote this package to conveniently request data from Synoptic in a Pythonic way and convert its returned JSON to a Polars DataFrame.

from datetime import timedelta
from synoptic import TimeSeries

df = TimeSeries(
   stid="wbb",
   recent=timedelta(minutes=30)
).df()

Important

🎟️ To use SynopticPy you need a Synoptic API token.

I’m sharing this package to improve my skills with Polars and gain more experience in building and maintaining open-source Python packages. If you are using Synoptic’s API and came across this package, I hope you find it useful.

Best of Luck 🍀

-Brian

See also

📈 The StationPy Web App lets you plot station data in your browser powered by pyscript.