Skip to content

Fetching weather in a city using openweathermap API and Python

License

Notifications You must be signed in to change notification settings

Aymane11/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fetching weather in a city using openweathermap API and Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages