Open Weather Flask
Open Weather Flask is a Python-based application that retrieves and displays real-time weather information for specified locations. It provides an API that fetches current weather data using the OpenWeatherMap API.
Features
- Fetches real-time weather data for any specified location.
- Provides a RESTful API for programmatic access to weather information.
Requirements
- Python 3.6 or higher
- OpenWeatherMap API key
Installation
-
Clone the Repository:
git clone https://github.com/testinapps/open-weather-flask.git cd open-weather-flask
-
Set Up a Virtual Environment (optional but recommended):
python -m venv venv # Activate the virtual environment: source venv/bin/activate
-
Install Dependencies:
pip install .
-
Configure the API Key:
- Obtain a free API key from OpenWeatherMap.
- Set the
OPENWEATHER_API_KEYenvironment variable with your API key:export OPENWEATHER_API_KEY=your_api_key_here
Usage
-
Run the Application:
python -m weather_fetcher
-
Access the API:
- Use tools like
curlor Postman to interact with the API. - Example:
curl "http://127.0.0.1:5000/weather?location=New York"
- The API will return JSON with current weather data for the specified location.
- Use tools like
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for open-weather-flask 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| open_weather_flask-0.1.2.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| open_weather_flask-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / open_weather_flask-0.1.2.tar.gz
| Download URL | open_weather_flask-0.1.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3da6b2ace2defc0c39763068c862e0728b3d28c60b7705567edf6ee2d51811d3
|
|
BLAKE2b-256 checksum How to use checksums |
d3a2a2bea2d09ce3a08c8aa52954ee4b6145bed842d3f1043c713c08e8fdbee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.15
|
Release files / open_weather_flask-0.1.2-py3-none-any.whl
| Download URL | open_weather_flask-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d2b6cafeb95302acb6548cf2df6de2b2041781fb655427969b96e58691b38c0
|
|
BLAKE2b-256 checksum How to use checksums |
5988bbd7d428dfd59d316bf607c3041152e63bca53c53c4c23727e785a863239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.15
|