CLI tool fetching weather in a city using openweathermap API and Python.
- 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.
- Install requirements using:
$ pipenv install
or
$ pip install -r requirements.txt
- Run the script ⚙️
$ 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)
- Beautify output 🎨
- Add more options ✔️
- Fork it 🍴
- Change it 🔧
- Create a Pull Request 🔃
Distributed under the MIT license. Read the LICENSE for more informations.