Skip to main content

NOAA API (V3) Python 3 SDK.

Project description

Build Status

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

Project details


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.21.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

noaa_sdk-0.1.21-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file noaa-sdk-0.1.21.tar.gz.

File metadata

  • Download URL: noaa-sdk-0.1.21.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for noaa-sdk-0.1.21.tar.gz
Algorithm Hash digest
SHA256 bb1308140cc5f6a5d82132e13cc54c8a8d94a2264607e7c95471ab186f059d7c
MD5 0707a0b51de2abb77add21e5f60117c0
BLAKE2b-256 9d82cd9189611b89fbc97c112f781f5a56d7ee27f97d110b1bfcfa22b9b927af

See more details on using hashes here.

File details

Details for the file noaa_sdk-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: noaa_sdk-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for noaa_sdk-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 b07ca0b911b584b166e7d433b5814d10083ce52a7f9e3e92d98a3a6bf8a27f18
MD5 73308f4a7c7cf7811551e13fa1a9e50e
BLAKE2b-256 d3a8f3079cf5417dd84a10d1da4dde9b0d8b04291b201273880f537273cfba72

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page