A lightweight, beginner-friendly open-source Python CLI Weather Application that fetches real-time weather using the wttr.in API.
- π Works on Windows, Linux, and macOS
- β‘ Fetches weather instantly
- π¦ Requires only one dependency:
requests - π― Beginner-friendly codebase
- π‘ Uses the free wttr.in weather API
- π Easy to contribute and extend
git clone https://github.com/ayushmandas29/weather-cli.git
cd weather-cli
2οΈβ£ Install requirements
bash
Copy code
pip install -r requirements.txt
βΆοΈ Usage
Run:
bash
Copy code
python main.py
Example:
yaml
Copy code
=== Advanced Weather App (CLI) ===
Enter city name: Mumbai
Weather Report:
Mumbai: βοΈ +32Β°C
π Project Structure
css
Copy code
weather-cli/
βββ main.py
βββ requirements.txt
βββ README.md
βββ LICENSE
π§ Roadmap
Upcoming improvements:
Add colored terminal output (rich library)
Add multi-day forecast support
Add error handling for invalid cities
Add unit tests
Add auto city detection (IP-based)
Make it installable using pip
Add Dockerfile support
π§© Contributing
We welcome all contributions!
Fork the repo
Create a new branch:
bash
Copy code
git checkout -b feature-name
Commit your changes
Push your branch
Open a Pull Request
Read the full guide in CONTRIBUTING.md.
π Issues
Found a bug? Have a feature idea?
π Open an issue:
https://github.com/ayushmandas29/weather-cli/issues
π License
This project is licensed under the MIT License.
β Support the Project
If you like this project:
β Star the repo
π΄ Fork it
π Open issues
π Submit pull requests
π¨βπ» Author
Ayushman Das