Skip to main content

TUI world clock application

Project description

world-wall-clock

world-wall-clock is a TUI application that provides a multi-timezone graphical clock in a terminal environment.

Screeenshot of world-wall-clock

Installing world-wall-clock

You can install world-wall-clock with the Python packaging tool pip. It is recommended to do so in a virtual environment. Alternatively, you can use pipx as a wrapper around pip that will handle setting up a virtual environment for you.

From PyPI, using pipx

pipx install world-wall-clock

From PyPI, using pip in a virtual enviornment

python -m pip install world-wall-clock

From the top level of the source repo, using pip in a virtual environment

python -m pip install .

Running world-wall-clock

In an environment with world-wall-clock installed, start it from the command line with:

wwclock

or

python -m world_wall_clock

Usage

world-wall-clock is a graphical application. By default it shows a live view of one local clock (the system time) and clocks for several time zones scattered around the world. By navigating using arrow keys and selecting or deselecting items from the sidebar of available timezones using the Enter or Space key, you can customize the list of displayed clocks. This is silently stored in the application configuration directory for the next time you launch world-wall-clock.

Using the "Custom time" radio button, you can switch the application into custom time mode. Edit the custom time to display by navigating to the numerical datetime fields next to the custom time button and typing over their current values (these are edited in "replace" rather than "insert" mode). The reference timezone for the custom time can be changed by navigating up or down from the timezone listed at the end of the custom time fields; the list of timezones you can pick from here is populated from the timezones of your displayed clocks.

Dependencies

world-wall-clock is a Python 3 application that relies on urwid as its terminal widget toolkit, xdg-base-dirs to determine where to keep the application configuration, and tzdata to provide backup timezone information if this is not already present on the system.

Development

world-wall-clock uses Poetry to manage builds and dependencies. The Python code is formatted using Black.

With Poetry installed, set up a Poetry environment with all of world-wall-clock's runtime and dev dependencies; from the top level of the source repo, run:

poetry install

Now you can modify the source code and run the application with any changes you've made using the poetry run command:

poetry run wwclock

The poetry run command will also allow you to run the suite of chosen dev tools for static type-checking, import sorting, code formatting, and linting:

poetry run mypy --strict
poetry run isort .
poetry run black .
poetry run flake8

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

world_wall_clock-0.1.4.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

world_wall_clock-0.1.4-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file world_wall_clock-0.1.4.tar.gz.

File metadata

  • Download URL: world_wall_clock-0.1.4.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Linux/6.1.80

File hashes

Hashes for world_wall_clock-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e6c98db92c15e6407ed91f90ec054cabcb7c488aa76fd22f30c7d62a0d321543
MD5 b82d0e0c2dfddd21422df8bba6e953a9
BLAKE2b-256 c068979fb1442ffd558486d5bcb4c6890690e9fcaeb1c06d68c5c6858f0f3266

See more details on using hashes here.

File details

Details for the file world_wall_clock-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: world_wall_clock-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Linux/6.1.80

File hashes

Hashes for world_wall_clock-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe14ff43bc1453d7d0138459ca5771678355e03d5c9f5a412c04e001220dbe4
MD5 5392a5e62d339487bb875c1c5d8d3625
BLAKE2b-256 d43b1b5fcb1c98e5b12adef653e1d3b19f9b16ee653a4148dc27ca79e8c8d89f

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