Skip to main content

Tiny CLI to print today's weather for your terminal (Open-Meteo, zero API key).

Project description

🌦️ weather-tty

Tiny CLI to print today's weather for your terminal — zero API keys, just vibes.

CI Status PyPI License Code style: Ruff

Coverage shrug Build success (usually, ask ChatGPT) Type checked LOL PRs welcome (but judged) Maintainer sleep deprived Made with love and Python Runs on UV Async all the things Emoji support Works on my machine Built with anger and coffee Weather probably fine Terminal approved

Features

  • Single-line output: 🌤️ Pamplona, ES: 25°C/12°C · rain 0.0mm · wind 18 km/h · sun 08:10–19:14
  • --city geocoding (Open-Meteo) or --lat/--lon
  • Units: metric (default) or imperial
  • --no-emoji for boring terminals
  • --verbose pretty panel for humans

Install

pip install weather-tty

Usage

# by city
weather-tty today --city "Pamplona"

# coordinates (overrides city)
weather-tty today --lat 40.4168 --lon -3.7038

# imperial units
weather-tty today --city "New York" --units imperial

# pretty panel
weather-tty today --city "Pamplona" --verbose

Notes

  • Data source: Open-Meteo
  • No API keys required.
  • Prints today (index 0 of daily arrays). If you want multi-day, PRs welcome.

Development

uv sync
uv sync --group dev
uv run ruff check .
uv run ruff check . --fix
uv run pytest
uv run weather-tty today --city "Pamplona"

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

weather_tty-0.1.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

weather_tty-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weather_tty-0.1.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for weather_tty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41f34c5c44bf032cefe46e279b3ea99a693e48b21dd0126752bedc84b5b0f529
MD5 e0e0929058144286fde423b94d13e975
BLAKE2b-256 cff8cc175232e22410aff78cea2310010e7bc542c06334f60ffaadbf3495ef5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for weather_tty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c6f03a9e61fb406d0cfcf5aab66e8058b177f54159e7acfbc2bac8508fcd289
MD5 fb0b57f6212621484316dc45b1e7e0d7
BLAKE2b-256 5a24cd90a70290cde2c3e66c43bbc53ecc58fce7feb5fd627128dc89ffb729c3

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