Skip to main content

terrahour

tests PyPI license

A world clock for the terminal. It shows a map of the world with day and night on it, and for every city you add, when the people there are at work.

By Alessio Coci. MIT licensed: copy it, change it, keep the notice.

terrahour main view

Install

pipx install terrahour

Then type terrahour. If you don't have pipx, install it first with sudo apt install pipx (Debian, Ubuntu) or brew install pipx (macOS). No Python at all? Download the ready-made file for your system from the releases page instead.

It runs on Linux and macOS. On Windows, use WSL to get the full app; installed directly on Windows, only the commands that print and exit work (--line, --json, --once).

The first five minutes

It starts with a few example cities. Then:

Press To
a add a city: type its name and press Enter
d remove the selected city
← → move through the day, 15 minutes at a time
r come back to now
? see every key
q quit

Your cities and settings are saved automatically.

What else it can do

demo

Find a meeting time. Each city has a bar showing its working hours. The row at the bottom shows when everybody is at their desk at the same time.

DST radar markets view
See clock changes coming. The DST radar lists the next clock change in every city, and warns you when the gap between you and them is about to shift by an hour. Watch the stock exchanges. Swap the city list for the ten biggest exchanges, with their real trading hours.
ambient view compact view
Put it on a spare monitor. The ambient view is a big clock over the map. Give it a time of day and the map slowly turns, keeping the place where it is that time in the middle. Fit it anywhere. In a small window it shows a compact list; for a status bar there is a one-line mode.

Also: reminders in another city's time, the weather next to each city, a light theme and twelve more, a 12-hour clock, and the mouse.

More

Every key, every command-line option, status bars and scripts, window sizes, other ways to install, and how to update: it's all in the manual.

Want to change the code? See DEVELOPMENT.md.

Credits

  • City list derived from GeoNames (CC BY 4.0).
  • Land mask rasterised from Natural Earth (public domain).
  • Geocoding and weather from Open-Meteo (CC BY 4.0).
  • Time zone rules come from your operating system's tz database through Python's zoneinfo.
  • Several hardening fixes by yourpwnguy.

License

MIT. See LICENSE.

Metadata

Release files for terrahour 1.0.9

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

Source distribution (sdist)

Source distribution for terrahour 1.0.9
File Size Uploaded Provenance Actions
terrahour-1.0.9.tar.gz 416.8 kB With provenance Details for terrahour-1.0.9.tar.gz

Built distribution (wheel)

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

Total release size: 820.0 kB

Release files / terrahour-1.0.9.tar.gz

Download URL terrahour-1.0.9.tar.gz
Size 416.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d3f3c6644ac5f2221b114852a657049af185cd906741131d9cea9317d64b33dd
BLAKE2b-256 checksum
How to use checksums
cf21ba43d24f5259d801942056be673e3a865e4744db70a4c6d94a9c0c869e6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / terrahour-1.0.9-py3-none-any.whl

Download URL terrahour-1.0.9-py3-none-any.whl
Size 403.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe5af86cb0ef9af2ec9510e8228762288c23f6435f9bba5d37d8a09d6683523e
BLAKE2b-256 checksum
How to use checksums
3808414e66030529577eaed39b1303d8dc97f749caa1382c2b11b887b41886cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for terrahour 1.0.9

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for terrahour-1.0.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

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