Skip to main content

fast_free_weather

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

Installation

pip install fast_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"])

Note: the PyPI package is fast_free_weather, but you import it as weather_fetch.

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.

Metadata

Release files for fast-free-weather 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-free-weather 0.1.2
File Size Uploaded
fast_free_weather-0.1.2.tar.gz 4.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for fast-free-weather 0.1.2
File Interpreter ABI Platform
fast_free_weather-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 MB

Release files / fast_free_weather-0.1.2.tar.gz

Download URL fast_free_weather-0.1.2.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
282e79a50edf28db24bc759a7835b15b684f3cd039b8f5ce9e60286e36a7184e
BLAKE2b-256 checksum
How to use checksums
f013b6766c64816931117152605ad46113670e1bf8fa1e0ae79622dca52a24dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / fast_free_weather-0.1.2-py3-none-any.whl

Download URL fast_free_weather-0.1.2-py3-none-any.whl
Size 4.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2142aec329a94dd0765c6014c77ec17d9a661ca9d827a69b9be4bd6eec33bc5c
BLAKE2b-256 checksum
How to use checksums
a1fa89b28ffbae51c076985380ed7b061cff36dd5374230eaa3d0092958b9147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page