wevva-warnings
wevva-warnings is a small Python library and CLI for looking up official
weather warnings for a single point.
You provide lat, lon, and a country_code; the library picks the right
official source or sources, normalizes the returned alerts, and filters them by
native point query or geometry.
Install
pip install wevva-warnings
Quick start
from wevva_warnings import get_alerts_for_point
alerts = get_alerts_for_point(
lat=40.71,
lon=-74.00,
country_code="US",
active_only=True,
)
for alert in alerts:
print(alert.headline)
print(alert.url)
Language-specific feeds can be selected with lang:
alerts = get_alerts_for_point(49.8, 7.67, "DE", lang="de")
wevva-warnings point 40.71 -74.00 US
wevva-warnings tropical-source nhc_gis_atlantic --formatted
Public API
from wevva_warnings import (
get_alerts_for_point,
get_alerts_for_source,
get_tropical_systems_for_source,
get_tropical_systems_near,
list_sources,
WarningQueryProgress,
)
The main entry point is:
get_alerts_for_point(lat, lon, country_code, lang=None, debug=False, active_only=False, progress=None)
Useful lower-level helpers:
get_alerts_for_source(source_id, active_only=False)get_tropical_systems_for_source(source_id)get_tropical_systems_near(lat, lon, radius_km=1000.0)list_sources()
Notes:
- the caller supplies the correct
country_code; the library does not infer country from coordinates - if a country has multiple language-specific feeds, English-capable sources are preferred by default
- if you request an unsupported language, the library warns and falls back to the default source selection
get_alerts_for_point(...)raisesUnsupportedCountryErrorwhen no alert sources are registered for the supplied country- returned
AlertandTropicalSystemobjects include optionalsource_infometadata when produced through the public query helpers - tropical-system sources are not currently routed through
country_codepoint queries
Point-query progress
Pass an optional progress callback to receive structured updates while a
point query runs. The callback is invoked synchronously on the calling thread;
UI callers running the query in a worker should marshal updates to their UI as
needed. Callback exceptions are ignored so a progress display cannot interrupt
the warning query.
def show_progress(event: str, payload: dict[str, object]) -> None:
if event == "source_started":
print(f"Checking weather warnings from {payload['provider_name']}…")
elif event == "alerts_checked":
print(f"Checked {payload['completed']} of {payload['total']} warnings")
alerts = get_alerts_for_point(60.17, 24.94, "FI", progress=show_progress)
WarningQueryProgress is the public callback type. The stable events are
documented in docs/architecture.md.
CLI
Main commands:
wevva-warnings point LAT LON COUNTRY_CODEwevva-warnings source SOURCE_IDwevva-warnings tropical-source SOURCE_IDwevva-warnings tropical-near LAT LONwevva-warnings sources
Useful flags:
--lang de--active--debug--formattedfor table output onsourceandtropical-source--radius-km 1000ontropical-near--source SOURCE_IDontropical-nearto restrict checked tropical-system sources--kind tropical_systemonsourcesto list only tropical-system sources
Source registry
There are currently 159 enabled sources in the built-in registry. For the full current list, use:
wevva-warnings sources
The source definitions themselves live in wevva_warnings/sources.py.
Geocode Data
Some EU point matching now uses packaged geocode boundary artifacts derived from Meteoalarm source data.
scripts/build_emma_geocodes.pybuilds a packaged EMMA geometry datasetscripts/build_emma_aliases.pybuilds a packaged EMMA alias datasetscripts/build_bom_amoc_geocodes.pybuilds a packaged Australian BoM AMOC geometry datasetscripts/build_jma_area_geocodes.pybuilds a packaged JMA area-code geometry dataset
Currently available at runtime:
- Meteoalarm
EMMA_IDgeometry resolution - Meteoalarm alias resolution to EMMA geometry, including
NUTS2,NUTS3,WARNCELL,WARNCELLID,FIPSandCISORP - Australian BoM
AMOC-AreaCodegeometry resolution for polygonalMW,RC,MEandPWcode families - JMA
JMA Area Codegeometry resolution from official JMA GIS boundary datasets
The runtime package is intended to ship only the small derived artifacts under
wevva_warnings/data/. Large upstream source files are treated as build
inputs, not packaged assets. Geocode geometries now default to packaged
per-code artifacts for lazy loading at runtime, while EMMA aliases are shipped
as a small plain JSON mapping.
Note that the EMMA geocode-polygon mapping is retrieved directly, but the aliases file is a Google Drive link which requires manual download. Both files are derived from the Meteoalarm Redistribution Hub.
The current Australian BoM path is narrower and uses official static BoM spatial
shapefiles behind AMOC-AreaCode, with the first cut focused on polygonal
MW, RC, ME and PW code families.
Intended pattern:
- keep raw provider geocodes on
Alert - normalize to one canonical geometry key if aliases are used
- ship only small derived boundary artifacts
- avoid runtime dependence on authenticated or mutable upstream APIs
Source Gap Tracker
The sources.csv file is a local snapshot of the WMO source list. Compared with the current registry, the remaining gaps fall into four useful categories.
Empty feeds
Some provider backends have not been fully validated against live alerts because the feed was empty when checked. These should be revisited later:
| Source ID | Provider | Checked | Note |
|---|---|---|---|
nms_belize |
Belize National Meteorological Service | 2026-04-17 | RSS feed was empty |
meteo_cameroon_en |
Cameroon National Meteorology | 2026-04-17 | English feed was empty; French feed was live |
vedur |
Icelandic Meteorological Office | 2026-04-17 | RSS feed was empty |
qatar_caa_en |
Qatar Civil Aviation Authority | 2026-04-17 | RSS feed was empty |
qatar_caa_ar |
Qatar Civil Aviation Authority | 2026-04-17 | RSS feed was empty |
imd_india |
India Meteorological Department | 2026-04-17 | RSS feed was empty |
inam_mz |
INAM Mozambique | 2026-04-17 | RSS feed was empty |
eswatini_met |
Eswatini Meteorological Service | 2026-04-17 | RSS feed was empty |
msj |
Meteorological Service of Jamaica | 2026-04-17 | Atom feed had no active advisories |
dma_anguilla |
Disaster Management Anguilla | 2026-04-17 | Atom feed was empty |
antigua_met |
Antigua and Barbuda Meteorological Service | 2026-04-17 | Atom feed was empty |
dem_barbados |
Department of Emergency Management Barbados | 2026-04-17 | Atom feed was empty |
dmh_myanmar |
Department of Meteorology and Hydrology Myanmar | 2026-04-17 | Atom feed was empty |
meteo_cw_en |
Meteorological Department Curaçao | 2026-04-17 | English feed was empty |
meteoalarm_atom_andorra |
Meteoalarm | 2026-04-17 | Atom feed was empty |
pagasa |
PAGASA | 2026-04-17 | Atom feed was empty |
ametvigilance_dz |
AmetVigilance Algeria | 2026-04-17 | Candidate feed URL returned the web app shell, not a usable RSS or CAP feed |
kuwait_met |
Kuwait Meteorology | 2026-04-17 | Host did not resolve from this environment |
saudi_ncm_en |
Saudi NCM (English) | 2026-04-17 | Feed request hung or returned 503 while checking |
saudi_ncm_ar |
Saudi NCM (Arabic) | 2026-04-17 | Feed request hung while checking |
svg_met |
Saint Vincent and the Grenadines Meteorological Services | 2026-04-17 | Atom feed was empty |
tmd_en |
Thai Meteorological Department | 2026-04-17 | RSS feed was empty |
tmd_th |
Thai Meteorological Department | 2026-04-17 | RSS feed was empty |
Intentionally skipped language variants
These are additional language feeds or mirror variants for countries already in the registry. We skipped them deliberately rather than because they were missed.
| Country / provider | Missing variant | Current support | Note |
|---|---|---|---|
| Cameroon | cm-meteo-ha |
meteo_cameroon_en, meteo_cameroon_fr |
Hausa mirror feed not enabled |
| Curaçao and Sint Maarten | cw-meteo-es |
meteo_cw_en, meteo_cw_nl, meteo_cw_pap |
Spanish WMO mirror not enabled |
| India | NDMA sachet RSS |
imd_india |
Separate provider family from IMD |
| Mongolia | mn-namem-mn |
namem_en |
Mongolian feed not enabled |
| Nigeria | ng-nimet-ha |
nimet_en |
Hausa feed not enabled |
Metadata
Release files for wevva-warnings 0.3.4
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 |
|---|---|---|---|---|
| wevva_warnings-0.3.4.tar.gz | 11.0 MB | Without provenance | Details for wevva_warnings-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wevva_warnings-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for wevva_warnings-0.3.4-py3-none-any.whl |
Total release size: 23.2 MB
Release files / wevva_warnings-0.3.4.tar.gz
| Download URL | wevva_warnings-0.3.4.tar.gz |
|---|---|
| Size | 11.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
648b622f82655cd07564cb72f076f109b78290cc89e8907d4ab8d264dabd6e47
|
|
BLAKE2b-256 checksum How to use checksums |
6f25d6827372e322e2c0e9fdf25ef5cd6a93613a3b0cf110eae385707a09123a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / wevva_warnings-0.3.4-py3-none-any.whl
| Download URL | wevva_warnings-0.3.4-py3-none-any.whl |
|---|---|
| Size | 12.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae03b576555643809ca6406af988ef9c02a1e64bedfdefbcdea8cc5812610a21
|
|
BLAKE2b-256 checksum How to use checksums |
bee64871db0100372778e612ae25c5741598ba6e4a44c7fb6991d10e2afd1a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for wevva-warnings 0.3.4
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.