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 Study session tracking

Features

  • Countdown timer:
    • tm 10s, tm 25m, tm 1h30m
  • Study/Train modes:
    • tm --study → track study sessions (resets daily, accumulates across multiple runs)
    • tm --train → track training sessions (same behavior, separate table)
  • Daily logging:
    • Records totals in ~/.tm_timer/data.json
    • Each day resets at 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:
    • tm --studystatus → show study table + stats
    • tm --trainstatus → show train table + stats
    • tm --tables → export both 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 --study

# Check study stats
tm --studystatus

# Start a train session
tm --train

# Export tables to tables.md
tm --tables

Example Tables Output

# tm_timer Tables

---

## 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**

Preview

Timer preview

Timer preview

Timer preview

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.1.tar.gz (6.1 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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tm_timer-2.1.tar.gz
Algorithm Hash digest
SHA256 75a906dde448c4b9d50df529a7cb72c900c60755e254c42c9c1a9375206eef8d
MD5 5cd2fee9d3387bf989d8eb1e3de56b97
BLAKE2b-256 e0600a4d20c9fd70afcea415f2519c0cfe5e3a6526b7f886f9aadd71249df79e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tm_timer-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b36d203587b9c28a709f75033e1cc55e12a606289a538a0d1924eb143ad94d1b
MD5 d2f8b79d04d02f08300b93b3fecaa3d1
BLAKE2b-256 57ca91cd18c97f531943bbb147d169b9694a3a1b7fcdf5c82e2c79dc2026d996

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