Metadata-Version: 2.5
Name: lupaxa-pomodoro
Version: 0.1.0
Summary: Terminal Pomodoro timer with configurable work and break sessions.
Project-URL: Homepage, https://github.com/lupaxa-workstation-toolbox/pomodoro
Project-URL: Documentation, https://github.com/lupaxa-workstation-toolbox/pomodoro#readme
Project-URL: Repository, https://github.com/lupaxa-workstation-toolbox/pomodoro
Project-URL: Issues, https://github.com/lupaxa-workstation-toolbox/pomodoro/issues
Author: The Lupaxa Project
License: MIT License
        
        Copyright (c) The Lupaxa Project
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENCE
Keywords: cli,pomodoro,productivity,timer
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Requires-Dist: rich>=13.0
Provides-Extra: dev
Requires-Dist: bump-my-version>=1.2.0; extra == 'dev'
Requires-Dist: hatch>=1.12.0; extra == 'dev'
Requires-Dist: mypy>=1.12.0; extra == 'dev'
Requires-Dist: pip-audit>=2.7.0; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.6.0; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest-cov>=5.0; extra == 'test'
Requires-Dist: pytest>=8.0; extra == 'test'
Description-Content-Type: text/markdown

<p align="center">
  <a href="https://github.com/lupaxa-workstation-toolbox">
    <img src="https://raw.githubusercontent.com/the-lupaxa-project/brand-assets/master/logos/organisations/workstation-toolbox/readme-logo.png" alt="Workstation Toolbox" />
  </a>
</p>

<h1 align="center">Pomodoro</h1>

Pomodoro is a terminal timer for focused work and scheduled breaks. It shows a live progress bar, counts down with a monotonic clock, and rings the terminal bell when a session finishes.

The package is `lupaxa-pomodoro`. The command is `pomodoro`.

## What it Does

- Runs a work session, then a short break, and repeats that pair.
- Takes a long break after the last work session. There is no short break immediately before it.
- Shows the session, a progress bar, the percentage, and the remaining time.
- Pauses, resumes, skips, and quits from the keyboard without pressing Enter.
- Prints a summary of completed work sessions and focus time.
- Keeps going when the terminal cannot sound the bell.

> **Note:** Skipped and unfinished sessions are not counted as completed work, and they do not add to the focus time.

## Requirements

- Python 3.11 or newer
- macOS, Linux, or Windows

## Install

```bash
pip install lupaxa-pomodoro
```

From a checkout:

```bash
make init
make python-install-dev
```

The console script is `pomodoro`. `python -m lupaxa.pomodoro` runs the same entry point.

## Quick Start

```bash
pomodoro
```

That starts a 25 minute work session. The default run is four work sessions, a 5 minute short break between them, and a 15 minute long break at the end.

```bash
pomodoro --work 50 --short-break 10 --long-break 20 --cycles 4
```

Durations are minutes. `--cycles` is the number of work sessions.

## Options

| Argument          | Default | Description                                    |
| ----------------- | ------- | ---------------------------------------------- |
| `--work`          | 25      | Work duration in minutes                       |
| `--short-break`   | 5       | Short break duration in minutes                |
| `--long-break`    | 15      | Long break duration in minutes                 |
| `--cycles`        | 4       | Number of work sessions                        |
| `--auto-start`    | on      | Start the next session as soon as one finishes |
| `--no-auto-start` | off     | Wait for Enter before each subsequent session  |
| `--no-sound`      | off     | Disable the terminal bell                      |
| `--no-clear`      | off     | Leave the terminal contents in place           |
| `--version`       |         | Print the version and exit                     |
| `--help`          |         | Print usage and exit                           |

Durations must be positive numbers. The cycle count must be a positive integer. Invalid arguments exit with status 2.

With `--no-auto-start`, the first session still starts immediately. Later sessions wait until you press Enter. `q` at that prompt quits.

## Controls

| Key      | Action                   |
| -------- | ------------------------ |
| `p`      | Pause or resume          |
| `s`      | Skip the current session |
| `q`      | Quit                     |
| `Ctrl+C` | Quit                     |

Pausing keeps the remaining time. Skipping does not mark the session complete. Quitting restores the terminal and exits with status 130.

Work is green, a short break is cyan, a long break is magenta, and a paused timer is yellow.

## Exit Codes

| Code | Meaning                    |
| ---- | -------------------------- |
| 0    | The cycle finished         |
| 2    | The arguments were invalid |
| 130  | You quit or pressed Ctrl+C |
| 1    | The timer failed           |

<a href="https://github.com/the-lupaxa-project">
  <img src="https://raw.githubusercontent.com/the-lupaxa-project/brand-assets/master/logos/components/footer-for-child-orgs.svg" alt="The Lupaxa Project Footer" width="100%" />
</a>
