Skip to main content

A simple Python package to fetch weather data from the free Open-Meteo API.

Project description

Weather Fetch

A simple Python package to fetch weather data using the free Open-Meteo API (no API key required).

Installation

pip install free_weather

Usage

from weather_fetch import WeatherFetch

wf = WeatherFetch()  # no API key needed for Open-Meteo
weather = wf.get_weather("Dhaka")  # defaults to metric units

print(weather["temperature"])
print(weather["description"])

Units

  • metric for Celsius (default)
  • imperial for Fahrenheit
  • standard treated the same as metric

Testing

python -m pip install -e .
python -m pip install pytest
pytest

The tests mock the HTTP calls; no real API calls are made, so they run offline.

Notes

  • Uses a 10-second timeout and raises ValueError on request or parsing errors.
  • Relies on Open-Meteo geocoding to resolve city names to coordinates; ensure the city can be found.

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

fast_free_weather-0.1.1.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

fast_free_weather-0.1.1-py3-none-any.whl (4.7 MB view details)

Uploaded Python 3

File details

Details for the file fast_free_weather-0.1.1.tar.gz.

File metadata

  • Download URL: fast_free_weather-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for fast_free_weather-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eed67dd58fd88ab61293f0cff15f4e57d3f23586b46d2ed4144715074df9c1f5
MD5 5ea0b763b6d8c7578b14900584623dd2
BLAKE2b-256 b5ca6e98b7bd9b9240bc0c1da286706bc88e7b029f2526bd81f91ed1984ed4ed

See more details on using hashes here.

File details

Details for the file fast_free_weather-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fast_free_weather-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd05dd5a0be519ff87861ba6d7480d4c0f1638bdd602e58cb782955c2bae83b0
MD5 b25c7a896aaacaae20720c058387b489
BLAKE2b-256 74ef7bcb984af7512f8b689ad5e03d2e175f7d136b12129d12e5304911f78fab

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