A Python package for fetching real-time weather data using the OpenweatherMAP API
Project description
How to Install
How to run
How to integrate API_key
Weather App 🌤️
A Python package for fetching real-time weather data using the OpenWeatherMap API.
Installation
pip install weather-app-mannyyebz
Setup
- Get a free API key from openweathermap.org
- Create a
.envfile in your project:
Usage
from weather_app import OpenWeatherMap
# Get weather for a city
client = OpenWeatherMap(api_key="your_api_key")
data = client.get_weather("New York")
print(data)
# Convert Celsius to Fahrenheit
temp_f = OpenWeatherMap.celsius_to_fahrenheit(25)
print(f"25°C is {temp_f}°F")
Features
- Fetch real-time weather data for any city
- Returns temperature, humidity, wind speed, and more
- Built-in Celsius to Fahrenheit converter
Dependencies
requestspython-dotenv
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weather_app_mannyyebz-0.1.5.tar.gz.
File metadata
- Download URL: weather_app_mannyyebz-0.1.5.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9210aeca80021619ba1b4e38bfbd82d5ace56b857aa037614e9cc484b988923b
|
|
| MD5 |
c07a4437248c2f3184d079ccf5ff76a4
|
|
| BLAKE2b-256 |
0a743076401d4b89929a559474ed941c60a75409979e26eba7d5db7b75f7cb44
|
File details
Details for the file weather_app_mannyyebz-0.1.5-py3-none-any.whl.
File metadata
- Download URL: weather_app_mannyyebz-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62248d15e6f4518b7bfa5a71c6ecb28b82961e629caf7e11441115a817adff45
|
|
| MD5 |
3acfe473cd14ebdee7701ce37d56e155
|
|
| BLAKE2b-256 |
55b2d553d15987928e9be86b8544c4a428f708ad9cb20609690f04ebe83b1c67
|