Skip to main content

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: en or zh, default zh
  • --unit: metric or imperial, default metric
  • --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 --location is omitted.
  • Uses rich for terminal table rendering.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terminal_weather_cli-0.1.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terminal_weather_cli-0.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file terminal_weather_cli-0.1.0.tar.gz.

File metadata

File hashes

Hashes for terminal_weather_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 408849bc224fd209b5c23f907982dc740e9a1268fab8d5a1ec9297af0e0a368f
MD5 fd9c0839208aead233a1f9cd16df5d22
BLAKE2b-256 0146cb679ba946f5967f7c1c3bd346eed50815084fb1461a06ac16d306ac7f55

See more details on using hashes here.

File details

Details for the file terminal_weather_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for terminal_weather_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d54d0a214be9a81c77d08004a63f357a6525d18a56500090784a6bcc8c9a4b9f
MD5 9d14fe3fd56ef52ebc21316d380cf46f
BLAKE2b-256 8da2ef723eac88a7b6c297563fd2569ebb0a56ba0970ff2563b984d3c3929b90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page