Skip to main content

Tells you the weather of any city/town anywhere in the world over the command line

Project description

A small Python script that can tell you the weather of any city/town anywhere in the world over the command line.

Weather data is accessed over the internet using the OpenWeather API. You'll need an API key, which you can get by simply sigining up to their website, signing in, and then going to "My API keys" under your profile.

The program has a proper command line interface with optional flags, help messages and so forth. Run show_weather --help to see more.

Install

% pip install show-weather

Example

To get the current weather in Toronto, for example, run

% show_weather <API_KEY> toronto

which outputs to the terminal

--------------------------------------------------

      Place:    Toronto
    Country:    Canada
Temperature:    -10.6°C

--------------------------------------------------

Project details


Download files

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

Source Distribution

show-weather-0.2.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

show_weather-0.2.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

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