pynws
Python library to retrieve observations and forecasts from NWS/NOAA
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a specific problem (async NWS data retrieval) with a clean API. It is suitable for weather-aware applications, home automation, and data collection. No known security vulnerabilities indicate reliable use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an async context (asyncio event loop) and a valid user-agent string (email) for NWS API requests.
- Low install friction with pure Python wheels.
- Actively maintained with a recent commit (2026-08-03) and steady release cadence.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2025-04-24 (477 days) · last repo commit 2026-08-03 · 38 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 75,626 downloads/mo, #14,695 on PyPI
Alternatives
Verify before relying
import aiohttp
import pynws
async def get_weather():
async with aiohttp.ClientSession() as session:
nws = pynws.SimpleNWS(39.95, -75.16, "user@example.com", session)
await nws.set_station()
await nws.update_observation()
print(nws.observation)- Whether SimpleNWS caching behavior and update frequency are documented or configurable.
- Rate limits or throttling behavior when making repeated NWS API calls.
- Availability of detailed error handling or retry logic for network failures.
What it is and what it does
pynws is a Python library that wraps the National Weather Service (NWS/NOAA) API to retrieve weather data asynchronously. It provides two main interfaces: a lower-level `Nws` class for minimally processed data and a higher-level `SimpleNWS` class that adds data caching and unit normalization. The library converts NWS observations into standardized units (Celsius for temperature, Pascal for pressure, km_h-1 for wind speed, etc.) and allows you to fetch current observations, forecasts, and weather alerts for a specific geographic location.
The package depends on aiohttp for HTTP requests, yarl for URL handling, and metar for parsing meteorological data. It targets modern Python (3.9+) and is actively maintained. With low install friction and no known vulnerabilities, it is straightforward to integrate into weather-aware applications.
Use it for
- Build a weather dashboard or home automation system that polls NWS for current conditions and alerts.
- Integrate real-time weather forecasts into a mobile or web app without managing your own weather data.
- Monitor weather alerts for a specific forecast zone to trigger notifications or automated responses.
- Retrieve standardized meteorological observations for data analysis or logging.
- Create a weather-aware scheduling system that adjusts plans based on NWS forecasts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a specific problem (async NWS data retrieval) with a clean API. It is suitable for weather-aware applications, home automation, and data collection. No known security vulnerabilities indicate reliable use.
Install
pynws on PyPI
Before you install
Low install friction with pure Python wheels. Actively maintained with a recent commit (2026-08-03) and steady release cadence. Supports current Python versions (3.9–3.13).
Requires an async context (asyncio event loop) and a valid user-agent string (email) for NWS API requests.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
import aiohttp
import pynws
async def get_weather():
async with aiohttp.ClientSession() as session:
nws = pynws.SimpleNWS(39.95, -75.16, "user@example.com", session)
await nws.set_station()
await nws.update_observation()
print(nws.observation)
Verify before relying
- Whether SimpleNWS caching behavior and update frequency are documented or configurable.
- Rate limits or throttling behavior when making repeated NWS API calls.
- Availability of detailed error handling or retry logic for network failures.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesaiohttpmetaryarl |
| Maintenance | Actively maintained 477 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,626 / month, #14,695 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: pynws-2.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “NWS NOAA weather API client”
- pynwsAsynchronously fetch weather observations, forecasts, and alerts from…
- herbie-dataHerbie downloads numerical weather prediction model data (GRIB2…
- metarParses METAR and SPECI coded aviation weather reports into structured…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also accuweather · env_canada · pyowm · meteofrance-api · meteomatics · open-meteo · irm-kmi-api · openmeteo-requests · PyFlume · aioecowitt