Menu

Tree [fb77b5] master /
 History

HTTPS access


File Date Author Commit
 docs 2013-11-12 Nirav Bhatia Nirav Bhatia [4b59fc] Pushed the docs folder now...
 wyther 2013-11-12 Nirav Bhatia Nirav Bhatia [fc4aff] Documentation added + weather is now returned a...
 .gitignore 2013-11-09 Nirav Bhatia Nirav Bhatia [1f7c41] First draft of pip package
 CHANGES.txt 2013-11-08 Nirav Bhatia Nirav Bhatia [e1684c] Started working on converting to a PIP package
 LICENSE.txt 2013-11-08 Nirav Bhatia Nirav Bhatia [e1684c] Started working on converting to a PIP package
 MANIFEST.in 2013-11-08 Nirav Bhatia Nirav Bhatia [e1684c] Started working on converting to a PIP package
 README.md 2013-11-12 Nirav Bhatia Nirav Bhatia [fb77b5] Update README.md
 WytherTests.py 2013-11-12 Nirav Bhatia Nirav Bhatia [fc4aff] Documentation added + weather is now returned a...
 setup.py 2013-11-09 Nirav Bhatia Nirav Bhatia [1f7c41] First draft of pip package

Read Me

Wyther

A simple Python wrapper to the Yahoo Weather API

Prerequisites

  1. Register at http://developer.yahoo.com/wsregapp to get an appid.
  2. Install requests module http://www.python-requests.org/en/latest/

Installation

Download the source code, extract it, cd into the Wyther directory, and run:

python setup.py install

Usage

Get weather by place (a tuple of city and country or city and state)

from wyther.Wyther import Wyther
APP_ID = 'YOUR APP ID'
wyther = Wyther(APP_ID)
print wyther.by_place(('atlanta','us'))

The above example gets the weather in Fahrenheit. To get the weather in Celsius

wyther.by_place(('atlanta','us'),'c')

Get weather by woeid

wyther.by_woeid(2442047) # gets the weather in fahrenheit of los angeles

Documentation

HTML documentation available in docs/html folder, generated using epydoc

epydoc --html wyther -o docs/html
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.