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

Prerequisites

Installing

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

Usage:
  weather
  weather week
  weather -h | --help
  weather --version

Get today’s weather forecast

$ weather

Get the week’s weather forecast

$ weather week

Example

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   |
+-----------------------+------------+

Built With

Authors

License

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.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openweathermap_cli-1.1.1-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file openweathermap-cli-1.1.1.tar.gz.

File metadata

  • Download URL: openweathermap-cli-1.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/33.1.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

File hashes

Hashes for openweathermap-cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 6c4f0269778a44e873b766b38e90ab469bd384de0e986aa3e11b06b2379d854a
MD5 5c141c7ebfad9082a6ce9f180e51fcf8
BLAKE2b-256 c0c564ae6f83b15c20b3a8e26e9729cf165611f57bed705552f6b907cc4a9965

See more details on using hashes here.

File details

Details for the file openweathermap_cli-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: openweathermap_cli-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/33.1.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

File hashes

Hashes for openweathermap_cli-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7f0e45373a0f259bd01834e07a5f6b6810ccb9b91d1f814de4952945cc3b9ad8
MD5 810cc6c91a261436ad168a8f71a2596f
BLAKE2b-256 5af80a46cbfb3693ad96c6a94e41da8f1078ded4943d7f2a6ce7cb7f3c260b13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page