Skip to main content

A terminal based stopwatch and countdown timer

Project description

time-manager

A powerful and visually stunning terminal-based timer application built with Textual and Typer.

  • TUI Interface: Beautiful, responsive terminal user interface with a premium feel.
  • CLI Interface: Lightweight mode (no Textual UI) via --cli.
  • Notifications: Visual and audio feedback (bell) when a countdown completes.

Stopwatch TUI Screenshot

Features

  • Stopwatch: Precise stopwatch with centisecond resolution.
  • Countdown: Configurable countdown timer with support for seconds, minutes, and hours.

Installation

  • Requires Python 3.13+
  • Installs two commands: tm (recommended) and time-manager

From PyPI:

pip install time-manager

If you use uv:

uv tool install time-manager

# or (inside a project)
uv add time-manager

Usage

time-manager provides two command names for convenience:

  • tm - Short and convenient alias
  • time-manager - Full command name

Both commands work identically. Examples:

tm sw         # or: time-manager sw
tm cd 5 m     # or: time-manager cd 5 m

Stopwatch

Start a stopwatch to track elapsed time:

tm sw

For CLI mode (no Textual UI):

tm sw --cli

Controls (TUI mode):

  • Space: Start/Stop
  • r: Reset
  • q: Quit

Countdown Timer

Start a countdown for a specific duration:

tm cd 5 m    # 5 minutes
tm cd 60 s   # 60 seconds
tm cd 1 h    # 1 hour

For CLI mode (no Textual UI):

tm cd 5 m --cli

Controls (TUI mode):

  • Space: Pause/Resume
  • q: Quit

Development

Prerequisites

  • uv installed on your system.
  • Python 3.13+

Installation for Development

To install in editable mode for development:

make local

Global Installation (Recommended for Testing)

To install as a system-wide utility:

make global

This builds a standalone executable and copies it to /usr/local/bin/time-manager, and also creates a /usr/local/bin/tm symlink.

Make Commands

Command Description
make local Install in editable mode for development
make global Build and install system-wide to /usr/local/bin
make build Build standalone executable (with version bump)
make bump Bump patch version (default)
TYPE=MINOR make bump Bump minor version
TYPE=MAJOR make bump Bump major version
make clean Remove build artifacts
make uninstall Remove global installation

Project Structure

time-manager/
├── src/
│   ├── app.py              # CLI entry point using Typer
│   ├── cli/
│   │   ├── __init__.py     # CLI package exports
│   │   └── cli.py          # CLI implementations for timers
│   ├── core/
│   │   ├── formatting.py   # Time formatting utilities
│   │   └── termclock.py    # Core timer logic
│   └── tui/
│       ├── __init__.py     # TUI package exports
│       ├── countdown.py    # Countdown TUI
│       ├── stopwatch.py    # Stopwatch TUI
│       └── theme.tcss      # Textual CSS theme
├── scripts/
│   └── bump.sh             # Version bump script
├── pyproject.toml          # Project configuration
├── uv.lock                 # Dependency lock file
├── Makefile                # Build and install commands
├── LICENSE                 # Project license
└── README.md               # This file

Publishing to PyPI

This repo uses make publish (via scripts/publish.sh) and defaults to TestPyPI.

Test PyPI (default)

To publish to Test PyPI (uses TEST_PYPI_PUBLISH_TOKEN):

make build
make publish

Production PyPI

To publish to production PyPI (uses PYPI_PUBLISH_TOKEN):

make build
PROD=TRUE make publish

Uninstallation

To remove the global installation:

make uninstall

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

time_manager-0.2.14.tar.gz (86.9 kB view details)

Uploaded Source

Built Distribution

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

time_manager-0.2.14-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file time_manager-0.2.14.tar.gz.

File metadata

  • Download URL: time_manager-0.2.14.tar.gz
  • Upload date:
  • Size: 86.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for time_manager-0.2.14.tar.gz
Algorithm Hash digest
SHA256 ec77826017d3e213ab0ea55b322e58a029e95961c21c94a195fdb388655d5142
MD5 0480339fade57466989538cf8cd55c34
BLAKE2b-256 84217c79c94b9df3b7d7f7ce70c505622a1633ebe15843a8b9eec72923f416e1

See more details on using hashes here.

File details

Details for the file time_manager-0.2.14-py3-none-any.whl.

File metadata

File hashes

Hashes for time_manager-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 2c60021e665a7e9a266001499a0c0fef43368b974d21d2d91dc56bb99f06d65a
MD5 f612d698ea62d9550e2b365099e50ff1
BLAKE2b-256 a9cf2480873ba5c22a1479a135a9858d1d7c6e4cafaaa3fe8a4206300de0cb3d

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