
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A python library to asynchronously retrieve weather observation from NWS/NOAA.
See example.py for a runnable example.
PHILLY = (39.95, -75.16)
USERID = "testing@address.xyz"
async def example():
async with aiohttp.ClientSession() as session:
nws = pynws.SimpleNWS(*PHILLY, USERID, session)
await nws.set_station()
await nws.update_observation()
await nws.update_forecast()
await nws.update_alerts_forecast_zone()
print(nws.observation)
print(nws.forecast[0])
print(nws.alerts_forecast_zone)
pynws exposes the ability to retrieve raw data using raw_data
module. Nws
class offers ability to retrieve minimally processed data for a single location. SimpleNWS
class offers data caching and several other helpers for interpreting output.
NWS API does not expose all possible units for observations. Known units are converted to the following:
unit type | known NWS units | pynws unit |
---|---|---|
temperature | degF, degC | Celsius |
pressure | Pa | Pascal |
speed | m_s-1, km_h-1 | km_h-1 |
percent | percent | percent |
angle | degree_(angle) | degrees |
distance | m | meter |
FAQs
Python library to retrieve observations and forecasts from NWS/NOAA
We found that pynws demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.