Skip to main content

Simple interface for weather.gov

Project description

Weather API

This is a very simple library to access information from the weather.gov api.

>>> from weathergovapi import WeatherGovApi
>>> point = WeatherGovApi.getPoint(31.9383,-81.3034)
# Information from the API can be accessed directly
>>> point.forecastUrl
'https://api.weather.gov/gridpoints/CHS/39,33/forecast'
# There are a few convenience methods
>>> forecast = point.forecast()
>>> current = forecast.periods[0]
>>> current.detailedForecast
'A chance of showers and thunderstorms before 4am, then a chance of rain showers and patchy fog. Cloudy, with a low around 62. West wind 2 to 9 mph. Chance of precipitation is 40%. New rainfall amounts less than a tenth of an inch possible.'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weathergovapi-0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file weathergovapi-0.2-py3-none-any.whl.

File metadata

  • Download URL: weathergovapi-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.42.1 CPython/3.7.2

File hashes

Hashes for weathergovapi-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afb550e109ad96a235b7be2f46b12d3410c22d575540693550a29e7256143ae7
MD5 5f3d4a744b332f44307a706e3025b158
BLAKE2b-256 e2719c7392f824a402fce25096ea57ed94b03c844ddbf6954d9d4ded5b55ee8b

See more details on using hashes here.

Supported by

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