https://github.com/zofiyacodes/python-weather-app
https://github.com/zofiyacodes/python-weather-app
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zofiyacodes/python-weather-app
- Owner: zofiyacodes
- Created: 2025-02-26T01:14:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-12T14:02:36.000Z (about 1 year ago)
- Last Synced: 2025-06-11T12:47:12.045Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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