This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

The problem: I want to look up the weather from wunderground from my terminal without opening up a web browser. I figured “hey, this should be easy / fun to do using Python!” – WRONG! XML is always a pain to work with, and there is no easy way to get XML schema into a dict. Most people don’t even use XML correctly; you should use JSON if you just have strings inside of XML tags and nothing more. Every API I’ve ever seen / worked with uses XML in this way, and so they could all replace it with the much easier to parse JSON.

Update: You can now pass in the location as the first argument to the script.

Update 2: You can use any location search format that wunderground supports; this includes zipcode, airport code, city name and state, etc. If Wunderground returns valid XML for your query, pycliweather will parse it; the searches are limited only by the Wunderground API.

In the example below, I’m using ‘dallas texas’. There is also a default specified in the code should a location not be passed.

Anyway, here is what should come out when you run this:

likwid@helios pycliweather(master)$ weather dallas texas Location: dallas+texas Sunrise: 6:18 Sunset: 20:37 Moon visible: 95%

Friday - Partly Cloudy - 79F to 99F - 0% chance of rain Saturday - Partly Cloudy - 79F to 104F - 10% chance of rain Sunday - Partly Cloudy - 79F to 101F - 10% chance of rain Monday - Partly Cloudy - 77F to 99F - 10% chance of rain Tuesday - Chance of a Thunderstorm - 77F to 95F - 20% chance of rain Wednesday - Chance of a Thunderstorm - 76F to 92F - 30% chance of rain

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pycliweather-0.3.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting