You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

weatherpy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weatherpy

Python wrapper for Yahoo weather API

1.0.2
pipPyPI
Maintainers
1

Weatherpy, python wrapper for Yahoo weather API

Weatherpy is a package that allows you to simply and easily access Yahoo's weather API. Give weatherpy a user agent and a WOEID and weatherpy will make accessing elements of the RSS feed simple.

example.

import weatherpy
r = weatherpy.Response('Bob's weather script', 44544)
print 'Wind: ', r.wind.speed, r.units.speed, r.wind.cardinal_direction()

gives

Wind: 6 km/h N

Weatherpy is only tested with python 2.5+. Weatherpy is not compatible wihth python 3.

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