Skip to main content

wevva

wevva is a weather TUI built with Textual and powered by Open-Meteo.

wevva Dashboard showing forecasts, global weather, tropical systems, and active alerts

The Dashboard is the navigation hub for forecasts, saved locations, active tropical systems, and weather alerts. See the Wevva 1.1 release notes for the latest changes and the 1.0 release notes for the lifecycle milestone and its deliberate post-1.0 deferrals. Upcoming changes are tracked in the Unreleased changelog.

Highlights

  • Place-name search using Open-Meteo geocoding, plus latitude/longitude search
  • Current, hourly, and daily forecasts with detailed weather parameters and keyboard navigation
  • Current and upcoming weather alerts (normalized provider data)
  • Global active tropical-system investigation with source-specific tracks and official products
  • Interactive Braille world map for spatial navigation between saved locations
  • Clickable temperature-labelled cities on country and regional weather maps
  • 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

On a fresh installation, Wevva saves six starter locations: Yellowknife, Hilo, Georgetown (Guyana), Accra, Baguio City, and Westport (New Zealand). Their bundled place metadata lets the Dashboard open immediately; loading weather still needs an internet connection. Existing configurations or Wevva cache directories prevent automatic seeding, so your locations are preserved.

Run setup before your first normal launch to accept or decline these starter locations. Declining or deleting them later keeps your list as you chose it.

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"

# Coordinates are latitude first; quote negative longitudes
uvx wevva --location "55.9533, -3.1883"

# 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

When a startup location is available from saved defaults or saved locations, wevva opens on the Dashboard; press w for the full Weather Forecast screen. Without one it opens place search first.

Weather Alerts

  • Weather alerts use my wevva-warnings library.
    • 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.
  • A bordered alert summary upgrades to the classic tabbed preview when height permits. Activating either form opens a modal where those tabs directly select the full, independently scrolling provider document; wide layouts retain the automatic detail/map sidebar.
  • During a background warning check, the header subtitle briefly reads Checking warnings… and then returns to View the forecast for your selected location; warning status does not create toast notifications.
  • Where a provider includes an official alert URL, wevva shows 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.
  • Warning maps use Unicode Braille, with full Braille cells for filled interiors and partial cells along geographic edges.

Press g from the Dashboard to open the Global Weather Alerts Center. It keeps country discovery separate from alerts applicable to the current forecast point, and combines a searchable active-alert list, complete provider documents, issued warning polygons, and locally selectable settlement labels. Hovering or keyboard-highlighting a warning row previews its polygon at full severity without selecting or zooming it. Activate a selected warning again to return to the full-country overview. Hovering a settlement shows compact current conditions; clicking it opens that place's complete forecast on the Weather Forecast screen. Returning through the Dashboard restores the previous Global Weather Alerts Center context. Use r to refresh its independent alert data and b to return to the Dashboard.

Global Weather Alerts Center showing active warning areas across Australia

Tropical Systems Warnings Center

Press t from the Dashboard to open the Tropical Systems Warnings Center. Canonical storm names are shown once, while each issuing centre's meteorology, track, and lazily retrieved official products remain separate. The main weather screen retains only nearby-storm awareness and location-specific alert detail.

The track uses a fitted global Natural Earth backdrop, centred position dots, and a provider cone when available. On this screen, r refreshes the tropical data and b returns to the Dashboard.

Tropical Systems Warnings Center showing a storm track and official advisory

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)

Keys

Dashboard is the navigation hub:

  • w open the full Weather Forecast screen
  • m open the interactive saved-locations world map
  • t investigate active tropical systems
  • g open the Global Weather Alerts Center
  • r refresh the selected forecast, its point alerts, and tropical systems

On the Weather Forecast screen:

  • s search for place
  • r refresh weather
  • a save current location
  • d delete highlighted saved location
  • l focus saved locations when its automatic rail is visible; otherwise open it
  • i focus warning details when its automatic rail is visible; otherwise open them
  • b return to the Dashboard

Shared throughout the application:

  • u open settings
  • h or ? open help
  • c credits
  • q quit

The Map View, Tropical Systems Warnings Center, and Global Weather Alerts Center screens use b to return to the Dashboard. Press h in the application for the complete shortcut guide. On the saved-locations world map, use left/right to move between city labels, then Enter or Space to open the focused forecast; mouse selection works too. Location-map city labels can likewise be clicked or focused and activated to open their ordinary weather forecast. Activating a Global Weather Alerts Center settlement also opens its ordinary full forecast; hovering first shows a compact current-weather tooltip without leaving the warning map.

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 1.1.0

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

Source distribution (sdist)

Source distribution for wevva 1.1.0
File Size Uploaded Provenance Actions
wevva-1.1.0.tar.gz 1.1 MB Without provenance Details for wevva-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wevva 1.1.0
File Interpreter ABI Platform Actions
wevva-1.1.0-py3-none-any.whl Python 3 none any Details for wevva-1.1.0-py3-none-any.whl

Total release size: 2.3 MB

Release files / wevva-1.1.0.tar.gz

Download URL wevva-1.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
966331465068166e9b32b560a9aeaca1dd55877b44a61ae952cd42be35d1c680
BLAKE2b-256 checksum
How to use checksums
8eb7b36a71a1f3c8bc37d08a93334e9441007948099e90ce1932c6ee908c9ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / wevva-1.1.0-py3-none-any.whl

Download URL wevva-1.1.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fb7acb1f317dbaec0e4ae114f595ab22bf998a8e20c4734a475ae7a8eeaf023d
BLAKE2b-256 checksum
How to use checksums
13c23cd811a254f75feecfb2a5fa00ea5ab7c75c58742aa153b3ded32a2f5464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for wevva 1.1.0

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.

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