Skip to main content

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

  1. Get a free API key from openweathermap.org
  2. Create a .env file 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

  • requests
  • python-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

weather_app_mannyyebz-0.1.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weather_app_mannyyebz-0.1.5-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for weather_app_mannyyebz-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9210aeca80021619ba1b4e38bfbd82d5ace56b857aa037614e9cc484b988923b
MD5 c07a4437248c2f3184d079ccf5ff76a4
BLAKE2b-256 0a743076401d4b89929a559474ed941c60a75409979e26eba7d5db7b75f7cb44

See more details on using hashes here.

File details

Details for the file weather_app_mannyyebz-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for weather_app_mannyyebz-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 62248d15e6f4518b7bfa5a71c6ecb28b82961e629caf7e11441115a817adff45
MD5 3acfe473cd14ebdee7701ce37d56e155
BLAKE2b-256 55b2d553d15987928e9be86b8544c4a428f708ad9cb20609690f04ebe83b1c67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page