Skip to main content

A openweathermap command line program in Python.

Project description

PyPI version

A command line application for displaying weather details, written in Python.

Getting Started



Openweathermap-cli is on PyPi so it can be installed with pip.

$ pip install openweathermap-cli

To upgrade use the -U flag.

$ pip install -U openweathermap-cli

Adding your API key

To begin you will need to add your API key. If you do not have an API key you can get one free from Open Weather Map.

$ weather api YOUR00API00KEY00GOES00HERE

Using openweathermap-cli

  weather week
  weather -h | --help
  weather --version

Get today’s weather forecast

$ weather

Get the week’s weather forecast

$ weather week


Get today’s weather details

$ weather
| City of Westminster   |            |
| Temperature           | 10.45      |
| Temp Max              | 12.0       |
| Temp Min              | 9.0        |
| Summary               | Rain       |
| Detail                | light rain |
| Sunrise               | 07:05:26   |
| Sunset                | 17:23:52   |


This project is licensed under the MIT License

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

openweathermap-cli-1.2.0.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

openweathermap_cli-1.2.0-py2.py3-none-any.whl (5.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page