Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/marwan-ahmed-23/weather-app

A simple Python CLI Weather App to fetch current weather information using the OpenWeatherMap API.
https://github.com/marwan-ahmed-23/weather-app

apis coding developertools opensource programming python weatherapp

Last synced: 10 days ago
JSON representation

A simple Python CLI Weather App to fetch current weather information using the OpenWeatherMap API.

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/marwan-ahmed-23/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!