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
To get weather forecast with postal code and country code.
from noaa_sdk import noaa
n = noaa.NOAA()
res = n.get_forecasts('11365', 'US', True)
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.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.NOAA()
n.points_forecast(40.7314, -73.8656, hourly=False)
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.12rc0.tar.gz
(10.1 kB
view details)
File details
Details for the file noaa-sdk-0.1.12rc0.tar.gz
.
File metadata
- Download URL: noaa-sdk-0.1.12rc0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4322c642d3bb7400da9d97b9988b492e25d2d0cf66c4abd8af8e6c7cf440ebb |
|
MD5 | 6398b29d975e9706f4025653217d3a05 |
|
BLAKE2b-256 | cb0ba6b5fc2b1da72f2e4e6eee89739fa0e8f05bc4820479cc5fae6de5363623 |