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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: noaa-sdk-0.1.19.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for noaa-sdk-0.1.19.tar.gz
Algorithm Hash digest
SHA256 a80a179da236fdf5aa8286089dea6defd22e539d490cfd980bda368626a8e5ac
MD5 4c802a36c3e1f0d030e9bcc39d4bd759
BLAKE2b-256 2f2474a01c594d5bfed21ea7d82c6d1697e061dbf650a68b8b41bae02dc828a4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: noaa_sdk-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for noaa_sdk-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 f1188542e321a453248d4c7b5b4ac6c8174a0db6f1751cb8fa29640cad9d7c8a
MD5 e1ea126ad40489461222ecd201f9b345
BLAKE2b-256 0f42d9651e0fc5986fa1742bd330251f2ccf83437c810a7197dcc1a6dba60e4e

See more details on using hashes here.

Provenance

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