.. toctree::
:maxdepth: 3
:hidden:
/user_guide/index
/reference_guide/index
===================================
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 `_.
.. code:: python
from datetime import timedelta
from synoptic import TimeSeries
df = TimeSeries(
stid="wbb",
recent=timedelta(minutes=30)
).df()
.. raw :: html
.. important::
🎟️ You need a Synoptic API token before using SynopticPy. `Register for a free Synoptic account
`_.
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
.. seealso::
📈 The `StationPy Web App `_ lets you plot station data in your browser powered by `pyscript `_.