Weather TUI
A terminal user interface for displaying weather forecasts with hour-by-hour graphs and multi-day forecasts.
Features
- Current weather conditions with temperature
- Hourly temperature and precipitation graphs
- 7-day weather forecast with clickable day selection
- Location search powered by OpenWeatherMap Geocoding
- Keyboard-friendly navigation
Installation
Using uvx (recommended, no install needed)
# Run directly without installing
uvx --with weather-tui python -m weather_tui
From PyPI
pip install weather-tui
From source
# Clone the repository
git clone https://github.com/benedikt-mayer/weather-tui.git
cd weather-tui
# Install with uv (recommended)
uv sync
# Or with pip
pip install -e .
Usage
# If installed via pip
python -m weather_tui
Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENWEATHERMAP_API_KEY |
Yes | API key for geocoding. Get a free key at OpenWeatherMap |
Create a .env file in your working directory:
OPENWEATHERMAP_API_KEY=your_api_key_here
Keyboard Shortcuts
| Key | Action |
|---|---|
s |
Search for a new location |
r |
Refresh weather data |
q |
Quit |
Escape |
Cancel search |
| Click | Select a day to view its hourly forecast |
Development
# Install dev dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Run linting
uv run ruff check .
uv run ruff format --check .
# Fix linting issues
uv run ruff check --fix .
uv run ruff format .
Tech Stack
- Textual - TUI framework
- textual-plotext - Terminal plotting
- Open-Meteo - Weather data API (no key required)
- OpenWeatherMap Geocoding - Location search
License
MIT License - see LICENSE for details.
Metadata
Release files for weather-tui 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weather_tui-1.4.0.tar.gz | 101.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weather_tui-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 120.6 kB
Release files / weather_tui-1.4.0.tar.gz
| Download URL | weather_tui-1.4.0.tar.gz |
|---|---|
| Size | 101.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17fc91fed91a4e6a33a6a0e7866ea30cdd9ab15802d1d3947cc9b673df836fa4
|
|
BLAKE2b-256 checksum How to use checksums |
1f04b62a398592faa9106bc97d96192c0cae57c0bd54f81d506a1d30ae10596b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / weather_tui-1.4.0-py3-none-any.whl
| Download URL | weather_tui-1.4.0-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6863d6dcdd23b0347cc2fa71bf7fa6c5658bbe6640a1b8b813a6ebe29ffedcd
|
|
BLAKE2b-256 checksum How to use checksums |
2244489c1622b1df6b99b790d0acf33808a55b80ac538bf0b4fd4fb68f7039d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|