An open API service indexing awesome lists of open source software.

https://github.com/zofiyacodes/python-weather-app


https://github.com/zofiyacodes/python-weather-app

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# 🌦 Python Weather App

A simple **command-line weather application** that fetches real-time weather data using the **OpenWeather API**.
Enter a city name, and the app will return details like temperature, humidity, pressure, and weather description.

---

## 🚀 Features
✅ Fetches live weather data for any city worldwide 🌍
✅ Displays **temperature (°C)**, **humidity (%)**, **pressure (hPa)**, and weather description ☁️
✅ Uses the **OpenWeather API** for real-time data
✅ Simple and lightweight, built with **Python** 🐍

---

## 🛠 Installation

### 1️⃣ Clone the Repository
Open a terminal or command prompt and run:
```bash
git clone https://github.com/shardwiz/python-weather-app.git

cd weather-app

pip install requests

api_key = "YOUR_API_KEY"

python weather_app.py

Enter the city name: Tokyo
Weather in Tokyo:
Temperature: 22.3°C
Pressure: 1012 hPa
Humidity: 65%
Description: clear sky