Terminal weather forecast service with 3-day outlook and ASCII art
Project description
Terminal Weather Service
A small terminal weather forecast service that shows the next 3 days with ASCII weather art.
Features
- 3-day forecast
- Real temperature range and apparent temperature range
- Wind speed and wind direction
- Visibility
- Precipitation amount and precipitation probability
- Metric and imperial unit support
- English and Chinese output
- HTTPS requests for geocoding and weather data
Usage
python main.py
python main.py --location "Shanghai" --lang zh --unit metric
python main.py --location "New York" --lang en --unit imperial
python main.py --show-icons
Development
Install dependencies with uv:
uv sync --group dev
Run lint checks:
uv run ruff check .
Format code:
uv run ruff format .
Apply safe auto-fixes:
uv run ruff check . --fix
Arguments
--location: city or place name; if omitted, the current location is used--lang:enorzh, defaultzh--unit:metricorimperial, defaultmetric--show-icons: show all built-in weather icons and labels
Notes
- Forecast and geocoding data are fetched from Open-Meteo over HTTPS.
- Current location is resolved over HTTPS using IP geolocation when
--locationis omitted. - Uses
richfor terminal table rendering.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terminal_weather_cli-0.1.0.tar.gz.
File metadata
- Download URL: terminal_weather_cli-0.1.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
408849bc224fd209b5c23f907982dc740e9a1268fab8d5a1ec9297af0e0a368f
|
|
| MD5 |
fd9c0839208aead233a1f9cd16df5d22
|
|
| BLAKE2b-256 |
0146cb679ba946f5967f7c1c3bd346eed50815084fb1461a06ac16d306ac7f55
|
File details
Details for the file terminal_weather_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: terminal_weather_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d54d0a214be9a81c77d08004a63f357a6525d18a56500090784a6bcc8c9a4b9f
|
|
| MD5 |
9d14fe3fd56ef52ebc21316d380cf46f
|
|
| BLAKE2b-256 |
8da2ef723eac88a7b6c297563fd2569ebb0a56ba0970ff2563b984d3c3929b90
|