Skip to main content

Small Python module for Weather Underground PWS APIs

Project description

Weather Underground PWS Python API

A small Python module for Weather Underground PWS APIs.

Installation

$ pip3 install wunderground_pws

Example usage

from datetime import date
from pprint import pprint

from wunderground_pws import WUndergroundAPI, units

wu = WUndergroundAPI(
    api_key='my api key',
    default_station_id='KMAHANOV10',
    units=units.ENGLISH_UNITS,
)
print('Current status of my weather station:')
pprint(wu.current()['observations'][0])
print('Summary of last 7 days:')
pprint(wu.summary())
print('Detailed hourly history for the last 7 days:')
pprint(wu.hourly())
print('History for 4/20/2019:')
pprint(wu.history(date(day=20, month=4, year=2019)))

Building docs

$ pip3 install -r requirements-docs.txt
$ cd docs/
$ make html

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

wunderground_pws-0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

wunderground_pws-0.1-py3.7.egg (7.4 kB view details)

Uploaded Source

File details

Details for the file wunderground_pws-0.1.tar.gz.

File metadata

  • Download URL: wunderground_pws-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for wunderground_pws-0.1.tar.gz
Algorithm Hash digest
SHA256 9a2c51e2fc3703e831fd4741562543dd94b875d797d2d008bcb4991e608f1817
MD5 fe270ede2585c3f3b059772661c2b8ae
BLAKE2b-256 df20e2aa25b4562df92e2c695c8b71d0b5893a310e5138c37ea6378573c456fc

See more details on using hashes here.

File details

Details for the file wunderground_pws-0.1-py3.7.egg.

File metadata

  • Download URL: wunderground_pws-0.1-py3.7.egg
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for wunderground_pws-0.1-py3.7.egg
Algorithm Hash digest
SHA256 a86520e5297ce938c401ad7a71f3cbc1ffb9a0cad63e1bb1ae9902a60fb73af5
MD5 4680f5d58a75e5a541e518ddc8498bd5
BLAKE2b-256 9422b2975f7055b7c38d086a715701b3729845edd95ac9fcfced80d449f680a3

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