Ce projet a été réalisé lors d’un test technique pour intégrer une équipe au sein de SFR dans le cadre de mon alternance. L’objectif était d’évaluer mes compétences en développement Python, en intégration d’API tierces, et en gestion de serveur web minimaliste.
- country.py: Fetches and displays country, region, and city data using the
universal-tutorial.comAPI. - index.py: A CGI script that handles user input for city, country, states, and cities to display weather information.
- meteo.py: Retrieves and displays weather information for a given city or ZIP code using the OpenWeatherMap API.
- server.py: Sets up a basic HTTP server to run the CGI script (
index.py).
-
Run the
server.pyscript to start the web server:python server.py
-
Access the application in your web browser using the provided link (typically
http://localhost:8888/index.py). -
Enter a city name or ZIP code in the input field and submit the form to view weather information.
- The API keys in
country.pyandmeteo.pymight need to be updated for the application to function correctly.