/weather

Fetching weather in a city using openweathermap API and Python

Primary LanguagePythonMIT LicenseMIT

weather ☀️ ☁️ ❄️

CLI tool fetching weather in a city using openweathermap API and Python.

Prerequisites

  • Python 3 🐍 or later
  • Openweathermap API key 🔑 (get it from here)
  • pipenv, to install it use $ pip install pipenv (optional)
You can use any virtualenv tool, use the requirements.txt file to install the necessary dependencies.

Usage

  • Install requirements using:
$ pipenv install
or
$ pip install -r requirements.txt
  • Run the script ⚙️

Options

$ python3 weather.py -h
usage: weather.py [-h] [-c]

Weather via command line

optional arguments:
  -h, --help    show this help message and exit
  -c, --config  Create config file (city - units - API key)

Example

Demo

TODO

  • Beautify output 🎨
  • Add more options ✔️

Contributing

  1. Fork it 🍴
  2. Change it 🔧
  3. Create a Pull Request 🔃

License

GitHub license

Distributed under the MIT license. Read the LICENSE for more informations.