Skip to main content

A cross-platform terminal Pomodoro timer (stdlib-only) with keypress pauses and an ASCII reward banner.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Shellpomodoro


PyPI version Python versions License: MIT

shellpomodoro = Shell + Pomodoro timer. Built for my own use; sharing in case it helps others too.

A cross-platform terminal-based Pomodoro timer CLI application that can be installed via pip and run anywhere. Built with Python's standard library only - no external dependencies required.

Features

  • 🍅 Classic Pomodoro technique with customizable work and break durations
  • ⏱️ Real-time countdown display with MM:SS format
  • 🔔 Terminal bell notifications at phase transitions
  • ⌨️ Keypress-controlled phase transitions (no need to wait)
  • 🎨 ASCII art congratulations upon session completion
  • 🖥️ Cross-platform support (Windows, macOS, Linux)
  • 📦 Zero external dependencies (Python stdlib only)
  • 🚀 Fast installation via pip

Installation

From PyPI (Recommended)

pip install shellpomodoro

Or, using UV instead of pip:

uv pip install shellpomodoro

Development Installation (from source)

git clone https://github.com/inspiringsource/shellpomodoro.git
cd shellpomodoro
python3 -m venv .venv
# macOS/Linux
source .venv/bin/activate
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
# Windows CMD
.\.venv\Scripts\activate.bat
pip install -U pip
pip install -e .

Alternative: Using pipx (isolated install)

pipx install .

Usage

Basic Usage

Start a default Pomodoro session (25min work, 5min break, 4 iterations):

shellpomodoro

Customization Options

# Custom work and break durations
shellpomodoro --work 30 --break 10

# Custom number of iterations
shellpomodoro --iterations 6

# Custom notification beeps
shellpomodoro --beeps 3

# Combine all options
shellpomodoro --work 45 --break 15 --iterations 3 --beeps 1

Command Line Options

  • --work N: Set work period duration in minutes (default: 25)
  • --break N: Set break period duration in minutes (default: 5)
  • --iterations N: Set number of Pomodoro cycles (default: 4)
  • --beeps N: Set number of notification beeps (default: 2)
  • --version, -v: Show version and exit
  • --help: Show help message and exit

Display modes

By default, shellpomodoro shows a countdown timer. You can pick other displays:

# default behavior (countdown)
shellpomodoro --display timer-back

# count up from 00:00
shellpomodoro --display timer-forward

# progress bar
shellpomodoro --display bar

# test-runner style dots
shellpomodoro --display dots --dot-interval 60   # one dot per minute
  • --dot-interval (seconds) is optional and only used with dots. If omitted, shellpomodoro uses a sensible default (one dot per minute for long phases; ~10 dots for short ones).

How It Works

  1. Work Phase: Focus on your task while the timer counts down
  2. Notification: Terminal bell sounds when work phase ends
  3. Keypress Transition: Press any key when ready for break
  4. Break Phase: Take a break while the timer counts down
  5. Repeat: Continue until all iterations are complete
  6. Completion: Enjoy ASCII art congratulations!

Session Control

  • Check Version: Run shellpomodoro --version or shellpomodoro -v
  • Abort Session: Press Ctrl+C at any time to abort the current session
  • Phase Transitions: Press Ctrl+E to end the current phase early (WORK → BREAK, BREAK → next WORK)
  • Real-time Display: See countdown timer, current phase, and instructions

Requirements

  • Python 3.9 or higher
  • No external dependencies required

Cross-Platform Compatibility

Shellpomodoro works seamlessly across different operating systems:

  • Windows: Uses msvcrt for keypress detection
  • Unix/Linux/macOS: Uses termios and tty for terminal control
  • Terminal Bell: Uses standard \a character (may require terminal configuration)

Troubleshooting: No Beep in VS Code

If you don't hear the terminal bell when running in the VS Code integrated terminal, you may need to enable audio cues in your VS Code settings. Add the following to your settings.json:

{
  "terminal.integrated.enableVisualBell": true,
  "accessibility.signals.terminalBell": {
    "sound": "on"
  },
  "audioCues.enabled": "on",
  "audioCues.terminalBell": "on"
}

This enables the audible bell and ensures \a is played as a sound when Shellpomodoro triggers notifications.

Examples

Quick 15-minute session

shellpomodoro --work 15 --break 5 --iterations 1

Extended deep work session

shellpomodoro --work 50 --break 10 --iterations 3

Silent mode (no beeps)

shellpomodoro --beeps 0

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please open an issue on the GitHub repository.

Development History

This project was initiated using Kiro, which helped establish the initial structure and core functionality of the Pomodoro timer (the original design.md, requirements.md, and tasks.md are included in the repo). Later, the codebase was optimized and refined using Grok code to improve performance, code quality, and maintainability.

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

shellpomodoro-0.1.3.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

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

shellpomodoro-0.1.3-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file shellpomodoro-0.1.3.tar.gz.

File metadata

  • Download URL: shellpomodoro-0.1.3.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shellpomodoro-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2647edbfbc98409e098e384dc30646975675e3ddcd0879028fdd576a4daa7fc7
MD5 83443505f71187ef2c707e187ea51de7
BLAKE2b-256 f05c4422df74383dd4df2a9208d1fb221df4066224bbc1a80171798a3b2f9679

See more details on using hashes here.

Provenance

The following attestation bundles were made for shellpomodoro-0.1.3.tar.gz:

Publisher: publish.yml on inspiringsource/shellpomodoro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shellpomodoro-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: shellpomodoro-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shellpomodoro-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8e53cada3c57f48618cf2802c835b93d59718c4e388f05e1f713401a85e26e3
MD5 8f0dd41f60ca87c73909a219f3f60ba8
BLAKE2b-256 67a3c6046daba757a85528c470700f1a1101684d4b1612219273aee40f2446aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for shellpomodoro-0.1.3-py3-none-any.whl:

Publisher: publish.yml on inspiringsource/shellpomodoro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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