NOAA API (V3) Python 3 SDK.
Project description
NOAA Python SDK
SDK for NOAA Weather Service REST API.
Fully unit tested SDK for NOAA Weather Service REST API.
Requirements
Python 3.4 (tested)
Goal
To provide a generic wrapper for the latest V3 NOAA weather service API.
Keep on changing this SDK when NOAA updates their API.
Class can be extended / decorated.
Code sample
There are 3 types of forecast responses: forecast, forecastHourly, forecastGridData.
To get weather forecast with postal code and country code.
from noaa_sdk import NOAA
n = NOAA()
res = n.get_forecasts('11365', 'US', type='forecastGridData')
for i in res:
print(i)
To get weather observation data from all nearest stations in 11375, US between 2017-12-01 00:00:00 (UTC) to 2017-12-01 05:00:00 (UTC)
from noaa_sdk import NOAA
n = NOAA()
observations = n.get_observations('11365','US')
for observation in observations:
print(observation)
To get weather forecast for a coordinate in USA
from noaa_sdk import NOAA
n = NOAA()
n.points_forecast(40.7314, -73.8656, type='forecastGridData')
Contributors
Paulo Kuong (@pkuong)
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
noaa-sdk-0.1.20.tar.gz
(10.0 kB
view hashes)
Built Distribution
noaa_sdk-0.1.20-py3-none-any.whl
(11.3 kB
view hashes)
Close
Hashes for noaa_sdk-0.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21d2ecafec4f77a023768f2ebe6c7d89587078dcd3d975c7eaa862d90e597ba7 |
|
MD5 | efd4b08cb39c6744a2f73d5398d901a0 |
|
BLAKE2b-256 | 6c6ede38112cdc6478dd215b2202535e64b7d2117c9a63531bf22896a2c17a02 |