Skip to main content

CLI coffee cooldown timer with a shrinking ASCII bar.

Project description

decafe-timer

PyPI - Version PyPI - Python Version

decafe-timer screenshot


Table of Contents

Installation

pipx install decafe-timer

Usage

The CLI revolves around three ideas:

  1. Passing a duration creates a new cooldown; omitting it resumes whatever is already running. You can use single durations (2h, 15m30s, 0:45:00) or a remaining/total pair like 3h/5h (spaces around / are allowed, and mixed formats like 3h/4:50:00 work too).
  2. --run decides whether to keep the live UI updating until the cooldown expires. Without --run, the command prints the current status once and exits.
  3. Style flags pick the ASCII layout and ANSI behavior.
    • Layout output:
      • Default is multi-line (Remaining / Expires at + bar).
      • --one-line uses HH:MM:SS ✕ ✕ ✕ ….
      • --graph-only prints just the bar.
    • Bar characters:
      • --bar-style swaps the bar characters (greek-cross default, counting-rod, or blocks for the previous look).
    • ANSI output:
      • ANSI is auto-enabled on TTYs.
      • --color=always forces ANSI on; --color=never forces it off (applies to both live and snapshot output).
    • Live updates:
      • When paired with --run, the live updates use the same ASCII bar (colored via ANSI).
    • Snapshot finish:
      • Snapshots print [You may drink coffee now.] once the timer finishes.
decafe-timer 45m          # start a new timer, print one snapshot
decafe-timer 3h/5h        # start with 3h remaining out of a 5h total
decafe-timer              # resume the latest timer, one snapshot
decafe-timer --run 45m    # start a new timer and watch it count down
decafe-timer --run        # resume the live UI for an active timer
decafe-timer --run --one-line 10m  # live ASCII updates on one line
decafe-timer --bar-style blocks   # use the classic block bar
decafe-timer --bar-style counting-rod  # use the counting rod bar
decafe-timer --graph-only # snapshot with the ASCII bar only
decafe-timer --version    # show the current version

License

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

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

decafe_timer-0.5.2.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

decafe_timer-0.5.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file decafe_timer-0.5.2.tar.gz.

File metadata

  • Download URL: decafe_timer-0.5.2.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for decafe_timer-0.5.2.tar.gz
Algorithm Hash digest
SHA256 76ae0b2dd3288d68b48768a278e8a69a336ea091c74bb156872dd9edfb52df17
MD5 c25f9ea8836b65797d692dd925a1ee64
BLAKE2b-256 83b7215384f2a0726e3ceecad57b48676e98c4452b3397f22a2c15bd373147e7

See more details on using hashes here.

File details

Details for the file decafe_timer-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: decafe_timer-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for decafe_timer-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f7ffb423b9f283cf1e26a06ff52a5bc5bc095ce6aa090fa01d51b683bcccd57
MD5 c2d008cb9fe52c51ec2f8f2dcdb8c9e0
BLAKE2b-256 980ee0ea9db001bb7ef8a59f2b110e477f0c2dcde046c0e75a62fcb51943a480

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