Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pynwsdata: Client interface for the weather.gov Web API (unofficial)

Introduction

pynwsdata provides access to the API Web Service of the National Weather Service.

API data coverage incldues:

  • Weather alerts
  • Significant Meteorological Advisory (SIGMET) information for aviation
  • Weather Forecast Office (WFO) metadata
  • Weather forecasts (2.5 km grid)
  • Terminal Aerodrome Forecast (TAFS) information for aviation
  • Weather headlines (News, WFO headlines)
  • Information and textual data for specific text products
  • Weather observations (latest and historic)

Getting Started

Examples are available in the examples source directory

Availability

Source code is available at GitHub: pyecolog/pynwsdata

Requirements

pynwsdata is developed for Python 3.10 and subsequent

Dependencies include:

Installation & Usage

This project uses pyproject.toml and can be installed with setuptools, using pip install

Tests

Tests have been provided with pytest

FIXME the tests from the generated sources have not been updated for recent source revisions

Addtional Web Resources

Author

This project is developed by Sean Champ <spchamp@users.noreply.github.com>

Support

GitHub Issues

Attrbutions

History

The Python source code for this package was originally generated using the OpenAPI Generator

  • API version: 1.13.1
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

OpenAPI schema availability: Please refer to the api.weather.gov General FAQs

Proceeding from the generated sources, subsequent revisions have included:

  • Adding a custom API object type, using pyfields for API object fields. This was in lieu of the original dependency on Pydantic

  • Adding support for abstract API object types. In effect, this is an extension to the original OpenAPI description, for API object types with common fields and types appearing under a generalized base class in the formal API definition.

  • Updating the API client model to suport server redirects and paged responses

  • HTTP/2 for API access, using HTTPCore

  • ujson for JSON processing

Additional Features:

  • Geolocation information with GeoPy

  • Data management and analytical modeling with Xarray and Pint

Other Projects

A partial listing of other projects providing an API for weather information in Python:

About

Client interface for the weather.gov Web API (unofficial)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages