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
metricfor Celsius (default)imperialfor Fahrenheitstandardtreated 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
ValueErroron 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fast_free_weather-0.1.2.tar.gz | 4.0 MB | Without provenance | Details for fast_free_weather-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_free_weather-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for fast_free_weather-0.1.2-py3-none-any.whl |
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
|
Security for fast-free-weather 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.