Python library to retrieve observations and forecasts from NWS/NOAA
Project description
pynws
A python library to asynchronously retrieve weather observation from NWS/NOAA.
Example
import asyncio
import aiohttp
import pynws
PHILLY = (39.95, -75.16)
USERID = 'testing@address.xyz'
async def defaults():
async with aiohttp.ClientSession() as session:
nws = pynws.Nws(session, latlon=PHILLY)
stations = await nws.stations()
nws.station = stations[0]
observations = await nws.observations()
forecast = await nws.forecast()
loop = asyncio.get_event_loop()
nws = loop.run_until_complete(defaults())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pynws-0.5.tar.gz
(4.0 kB
view hashes)
Built Distribution
pynws-0.5-py3-none-any.whl
(4.6 kB
view hashes)