This project is a weather API wrapper that fetches weather data for a specified city. It uses FastAPI for the web framework, Polars for data manipulation, and integrates with external APIs to get weather forecasts and location data.
- Fetch weather data for a city.
- Cache weather data to improve performance.
- Display weather data using a web interface.
-
Clone the repository:
git clone https://github.com/marcelogcardozo/weather-app.git cd weather-app
-
Create a virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
Create a .env file with your API keys and preferred redis settings based on the provided .env.example file.
-
Start the FastAPI server:
fastapi run src/app/main.py
-
Open your browser and navigate to
http://127.0.0.1:8000
to access the web interface.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License.