Skip to main content

Minimalistic terminal-based timer with Study/Train tracking

Project description

In The Name of God


⏱️ tm-timer

Minimalistic Terminal timer with dynamic activity tracking

Features

  • Countdown timer:
    • tm 10s, tm 25m, tm 1h30m
  • Dynamic Activity modes (track anything):
    • tm -a study -> track study sessions
    • tm -a train -> track training sessions
    • tm -a reading -> track custom activities (resets daily, accumulates across multiple runs)
  • Daily logging:
    • Records totals in ~/.tm_timer/data.json
    • Each day resets at midnight (splits time correctly if a session crosses midnight)
  • Statistics:
    • Average daily hours
    • Standard Deviation of Time
    • Status report:
      • Very Good (SD < AVG/2)
      • Good (SD = AVG/2)
      • Not Good (SD > AVG/2)
  • Export & Management:
    • tm -s study -> show study table + stats
    • tm --list -> list all tracked activities and their total time
    • tm -t -> export all activity tables to tables.md
  • Controls:
    • p -> pause/resume
    • q -> quit and save

Installation

sudo apt install pipx       # if not installed
pipx install tm-timer       # install tm-timer
pipx ensurepath             # add tm to PATH
exec $SHELL                 # reload shell

Example Usage

# Start a study session
tm -a study

# Check study stats
tm -s study

# Start a train session
tm -a train

# Start a custom activity session (e.g., reading)
tm -a reading

# List all recorded activities
tm --list

# Export tables to tables.md
tm -t

Example Tables Output

## STUDY Table

| Date       | Day | Time   |
| ---------- | --- | ------ |
| 2025-10-03 | FRI | 05:00:00 |
| 2025-10-02 | THU | 02:50:00 |
| 2025-09-29 | MON | 04:05:00 |
| 2025-09-27 | SAT | 03:36:00 |

[AVG] = 3.98h    [Standard Deviation of Time] = 0.75h    Status = Very Good


## TRAIN Table

| Date       | Day | Time   |
| ---------- | --- | ------ |
| 2025-10-03 | FRI | 00:57:00 |
| 2025-10-02 | THU | 00:50:00 |
| 2025-09-30 | SUN | 00:35:00 |
| 2025-09-28 | SAT | 01:36:00 |

[AVG] = 1.05h    [Standard Deviation of Time] = 0.38h    Status = Very Good

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

tm_timer-2.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

tm_timer-2.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file tm_timer-2.2.tar.gz.

File metadata

  • Download URL: tm_timer-2.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tm_timer-2.2.tar.gz
Algorithm Hash digest
SHA256 27366c9f64d55f0ac087806d4a988b3eff294f85602cf446a5bf0d51f1b8b648
MD5 80973114e5097ff9c7d6dc707b926546
BLAKE2b-256 db209abf3ba0066dea68da8237efbf342ff821e4965f1d37176460606bc0fed5

See more details on using hashes here.

File details

Details for the file tm_timer-2.2-py3-none-any.whl.

File metadata

  • Download URL: tm_timer-2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tm_timer-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a052b269da1f8853edbd59d6f0fbd3aa766da949f611cccb3526efed7da47e8a
MD5 c1d0b59b62c3963995e419b300ed4bda
BLAKE2b-256 74c08f769b25a21121051aad3633f04b3e38f8300ae643647efbe8b4bb88ad03

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