wevva
wevva is a weather TUI built with Textual and powered by Open-Meteo.
Highlights
- Place search using Open-Meteo geocoding
- Current, hourly, and daily forecasts with detailed weather parameters and keyboard navigation
- Current and upcoming weather alerts (normalized provider data)
- Unit preferences (temperature, wind, precipitation)
- Theme toggle and optional emoji rendering
- Interactive setup wizard for defaults
- Reusable Python API (async + sync helpers)
Quick Start
First, install uv:
curl -Ls https://astral.sh/uv/install.sh | sh
Then, using uvx, run wevva:
uvx wevva
to launch the app without cloning the repo. This will install wevva as a package in a temporary environment and run it from there.
Alternatively, you can clone the repo and run from the local source:
uvx --from . wevva
Requires Python >=3.12.
First-Time Setup
Save settings without launching:
uvx wevva setup --no-launch
Useful Commands
# Start normally (uses saved defaults)
uvx wevva
# Start directly at a location (picks first geocoding match, might not be what you expect!)
uvx wevva --location "Edinburgh"
# One-run overrides
uvx wevva --theme dracula --emoji
uvx wevva --temperature-unit fahrenheit --wind-speed-unit mph
# Manage saved default location
uvx wevva --set-default-location "New York"
uvx wevva --clear-default-location
Weather Alerts
- Weather alerts use my
wevva-warningslibrary.- Because we fetch all alerts for the searched location's country, then filter them by the forecast location coordinates, this may take a minute or two if there are many alerts in the country.
- Alerts appear as compact tabs, with the full provider text shown in the details sidebar.
- Where a provider includes an official alert URL,
wevvashows it directly on the alert panel so you can jump out to the source document. - We use the latitude and longitude coordinates of the forecast location in combination with the warning provider-issued polygon data. Some countries/providers don't issue polygon data, so we are unable to show alerts for those locations.
Library Usage
This library is designed to be used as a TUI, but I have also exposed a minimal set of functions for fetching weather data and geocoding that can be used in other Python contexts. These are available as both async and sync versions, depending on your needs.
Install as a package:
uv add wevva
Simple sync usage (nice for scripts):
from wevva import forecast_by_place_sync
bundle = forecast_by_place_sync("Edinburgh")
print(bundle.metadata.name, bundle.metadata.country)
print(bundle.current.get_temperature(), bundle.current.forecast_units.get("temperature_2m"))
Async usage (best for apps/services):
import asyncio
from wevva import forecast_by_coordinates
async def main() -> None:
bundle = await forecast_by_coordinates(lat=55.9533, lon=-3.1883)
print(bundle.daily.get_temperature_max(0))
print(bundle.hourly.get_condition_abbreviation(0))
asyncio.run(main())
You can also geocode from Python:
from wevva import geocode_sync
matches = geocode_sync("Glasgow", count=3)
for match in matches:
print(match.name, match.country, match.latitude, match.longitude)
Fetch alerts by coordinates:
from wevva import alerts_by_coordinates_sync
alerts = alerts_by_coordinates_sync(lat=39.7456, lon=-97.0892, country_code="US")
for alert in alerts:
print(alert.event, alert.severity, alert.expires)
In-App Keys
ssearch for placerrefresh weatherasave current locationddelete highlighted saved locationltoggle saved locations sidebaruopen unit settingshor?open helpccreditsqquit
Config
Preferences are stored at:
~/.config/wevva/config.json
Saved settings include:
- units
- theme
- emoji preference
- default location (and cached resolved location metadata)
Metadata
Release files for wevva 0.4.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-0.4.4.tar.gz | 70.3 kB | Without provenance | Details for wevva-0.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wevva-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for wevva-0.4.4-py3-none-any.whl |
Total release size: 163.0 kB
Release files / wevva-0.4.4.tar.gz
| Download URL | wevva-0.4.4.tar.gz |
|---|---|
| Size | 70.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3606ad6690f4aea3d2f09ea5a374ac48badc06d21b5e61f1d1471e6365e1ca68
|
|
BLAKE2b-256 checksum How to use checksums |
57d59083b70614220a1afea7ef6171e286c75caeeb295683d3ad7a83f49db37a
|
| 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-0.4.4-py3-none-any.whl
| Download URL | wevva-0.4.4-py3-none-any.whl |
|---|---|
| Size | 92.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a11c2ad9e135cf6874aa40e8157f10d535482d4b0def55c4663a32db51470b6
|
|
BLAKE2b-256 checksum How to use checksums |
a0ac716c10062f4cd79a225e2fa5870cb7708b2cc010a9e530f3c92bfdb2c5b2
|
| 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 0.4.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.