https://github.com/m-ah07/weather-app
A simple Python CLI Weather App to fetch current weather information using the OpenWeatherMap API.
https://github.com/m-ah07/weather-app
apis coding developertools opensource programming python weatherapp
Last synced: 4 months ago
JSON representation
A simple Python CLI Weather App to fetch current weather information using the OpenWeatherMap API.
- Host: GitHub
- URL: https://github.com/m-ah07/weather-app
- Owner: m-ah07
- License: mit
- Created: 2024-12-15T22:42:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-20T10:56:45.000Z (over 1 year ago)
- Last Synced: 2025-05-22T11:36:06.878Z (about 1 year ago)
- Topics: apis, coding, developertools, opensource, programming, python, weatherapp
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weather App
A simple Python CLI Weather App to fetch current weather information using the OpenWeatherMap API.
## π Features
- Fetch current weather data for any city.
- Display temperature, humidity, and weather description.
- Easy-to-use and extendable.
## π Directory Structure
```plaintext
weather-app/
βββ src/
β βββ weather.py
βββ examples/
β βββ example.py
βββ .gitignore
βββ LICENSE
βββ README.md
```
## π§ Installation
1. Clone the repository:
```bash
git clone https://github.com/m-ah07/weather-app.git
```
2. Navigate to the project directory:
```bash
cd weather-app
```
3. Install dependencies:
```bash
pip install requests
```
## π Usage
1. Replace `your_api_key_here` in `example.py` with your OpenWeatherMap API key.
2. Run the example script:
```bash
python examples/example.py
```
## Example
Hereβs an example of how the app works:
```bash
Enter city name: London
Weather in London:
Temperature: 15Β°C
Description: Clear sky
Humidity: 68%
```
## π€ Contributing
Contributions are welcome! Feel free to fork the repository and submit a pull request.
## π Stay Connected
Feel free to star β this repository if you find it helpful!