Skip to main content

WeatherAPI-Py is a Python package for retrieving real-time air temperature using Open-Meteo and OpenWeather APIs. It supports multiple data sources, easy integration, and temperature conversion

Project description

WeatherAPI-Py

WeatherAPI-Py 🌍☁️ - A Python Package for Fetching Air Temperature WeatherAPI-Py is a Python package that allows users to retrieve real-time air temperature data using multiple weather APIs, including Open-Meteo and OpenWeather. This package provides an easy-to-use interface for fetching and processing temperature data using latitude and longitude coordinates. 🌟 Features ✅ Support for multiple weather APIs (Open-Meteo & OpenWeather) ✅ Object-oriented architecture with a base class for easy extension ✅ Conversion from Kelvin to Celsius for OpenWeather API ✅ Lightweight and simple to use 🚀 Installation bash Copy Edit pip install weatherapi-py 📌 Usage python Copy Edit from weatherapi import OpenMeteo, OpenWeather # Using Open-Meteo open_meteo = OpenMeteo(35.6944, 51.4215) temperature = open_meteo.get_current_temperature() print(f"Temperature from Open-Meteo: {temperature}°C") # Using OpenWeather (requires API key) open_weather = OpenWeather(35.6944, 51.4215, api_key="your_api_key") temperature = open_weather.get_current_temperature() temperature = open_weather.kelvin_to_celsius(temperature) print(f"Temperature from OpenWeather: {temperature}°C") 📜 License This project is licensed under the MIT License.

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

weatherapi_py-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

weatherapi_py-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file weatherapi_py-0.0.1.tar.gz.

File metadata

  • Download URL: weatherapi_py-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for weatherapi_py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1495998ca649cfd4dccb34a05f7ab42f1eb65888cc22d73ace22935496cc419f
MD5 e08850d7b0266cfadca4e16910cf2a6c
BLAKE2b-256 6aced0a98d4c3d5b6b58375b682d33c705237ba0aa7449bf125df4fedf2cd153

See more details on using hashes here.

File details

Details for the file weatherapi_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: weatherapi_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for weatherapi_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c47bf0545b125a7fb84306d14d5db42cbdc0a0a7714e8056498141203d5f8766
MD5 b518e7df573aef9b896150db518e93bc
BLAKE2b-256 bdc0247a939e7c61670a9377fd46430c77b7675d7dadf85f0fa7089fafdefe8a

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