Socket
Book a DemoInstallSign in
Socket

wunderground-pws

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wunderground-pws

Small Python module for Weather Underground PWS APIs

pipPyPI
Version
0.1
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts