Skip to main content

decafe-timer

PyPI - Version PyPI - Python Version

A lightweight CLI tracker for caffeine clearance and intake. It was created for people who want to pace caffeine and avoid overuse.

Note: The command structure changed significantly in 0.9.0.

decafe-timer screenshot

Installation

pipx install decafe-timer

Usage

The model is intentionally simple:

  • Memory (mem) is the bar's maximum length and the default intake size.
  • Remaining time is treated as the amount of caffeine still in your body.
  • intake adds to the remaining amount; the bar shrinks as it clears.
  • If you intake again before it reaches zero, remaining can exceed mem and the bar shows >>.

Basics

decafe-timer              # show a snapshot if active; otherwise show ---
decafe-timer mem 3h       # set bar memory (default intake size)
decafe-timer mem          # show current bar memory
decafe-timer intake 45m   # add intake time (starts a new timer if none)
decafe-timer intake       # add the memory amount
decafe-timer +5h          # short form for intake 5h
decafe-timer clear        # clear the current timer (shows ---)
decafe-timer run          # resume the live UI for an active timer
decafe-timer config       # show memory + bar style + layout

Options

decafe-timer --layout one-line        # use the single-line ASCII layout (temporary)
decafe-timer --layout graph-only      # snapshot with the ASCII bar only (temporary)
decafe-timer --one-line               # legacy alias for --layout one-line (temporary)
decafe-timer --graph-only             # legacy alias for --layout graph-only (temporary)
decafe-timer --bar-style blocks        # save and use the classic block bar
decafe-timer --bar-style counting-rod  # save and use the counting rod bar
decafe-timer --bar-style random        # pick one style now and save that result
decafe-timer --color=always    # force ANSI colors on
decafe-timer --color=never     # force ANSI colors off
decafe-timer --version         # show the current version

Configuration

decafe-timer config --bar-style blocks       # save the default bar style
decafe-timer config --layout one-line        # save the default layout
decafe-timer config --layout graph-only      # save the default layout
decafe-timer config --one-line               # legacy layout setter (saves default)
decafe-timer config --graph-only             # legacy layout setter (saves default)

Notes

  • run, intake, mem, config, and clear are mutually exclusive in the same invocation.
  • intake extends the remaining time without changing the bar scale.
  • If the timer is expired, intake starts a new timer from now.
  • mem defaults to 3h when not yet set.
  • The default bar style is greek-cross.
  • --bar-style is saved immediately and becomes the default for later runs.
  • --bar-style random picks one concrete style immediately and saves that result.
  • --layout remains temporary unless used with config.
  • When the remaining time exceeds the bar scale, a >> suffix is shown at the end of the bar.
  • decafe-timer shows status without changing state; decafe-timer 45m is invalid.
  • clear is the supported way to remove the current timer. 0 is mentioned in the CLI help text but is not currently accepted by the parser.

License

decafe-timer is distributed under the terms of the MIT license.

Metadata

Release files for decafe-timer 0.10.0

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

Source distribution (sdist)

Source distribution for decafe-timer 0.10.0
File Size Uploaded
decafe_timer-0.10.0.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for decafe-timer 0.10.0
File Interpreter ABI Platform
decafe_timer-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / decafe_timer-0.10.0.tar.gz

Download URL decafe_timer-0.10.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
094608cd076ed6a80f98d95348157844b42c78f7ba2b88622daba3a945c8bb56
BLAKE2b-256 checksum
How to use checksums
6d06d275e79ae4439779da499f4ece027c43c64e832a5205759676a540d9e34d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1

Release files / decafe_timer-0.10.0-py3-none-any.whl

Download URL decafe_timer-0.10.0-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e81ca31fee985511d15b5bfc770f3de3f7fb334166ceee4b50d907aca5d6a8c
BLAKE2b-256 checksum
How to use checksums
842991cc622b36cce8860eca5ebdc6e7998ded8ed314f876f9d52f20f7eb7f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.4.3

2 release files

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