Python3.9+ package to access the Tomorrow.io Weather API
Both an async module (TomorrowioV4
) and a synchronous module
(TomorrowioV4Sync
) are provided.
from datetime import timedelta
from pytomorrowio import TomorrowioV4Sync
gps_coord = (28.4195, -81.5812)
api = TomorrowioV4Sync("MY_API_KEY", *gps_coord)
print(api.realtime(api.available_fields(timedelta(0))))
print(api.forecast_nowcast(api.available_fields(timedelta(minutes=5))))
- TODO
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.