A simple command-line weather application in Python.
- Fetches current weather and forecast by city name
- Uses a free API (OpenWeatherMap, no registration required)
- Simple CLI interface
-
Create a virtualenv with pyenv:
pyenv virtualenv 3.9.13 weather-cli-env pyenv activate weather-cli-env
-
Install dependencies:
pip install -r requirements.txt
-
Run the app:
python main.py
- The app uses the OpenWeatherMap API (requires API key).
- If you want to use another API, update
weather_api.pyand add your API key if required.