Metadata-Version: 2.1
Name: pyomodoro
Version: 0.0.3
Summary: An easy to use CLI for the Pomodoro Technique.
Home-page: https://gitlab.com/tedtramonte/pyomodoro
Author: Ted Tramonte
License: MIT
Project-URL: Issue tracker, https://gitlab.com/tedtramonte/pyomodoro/issues
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Education
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Education
Classifier: Topic :: Office/Business :: Scheduling
Classifier: Topic :: Other/Nonlisted Topic
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: Click (==7.1.2)
Requires-Dist: plyer (==1.4.3)
Requires-Dist: PyYAML (==5.3.1)
Requires-Dist: python-i18n[yaml] (==0.3.9)

# Pyomodoro
Pyomodoro is an easy to use CLI for the [Pomodoro Technique](https://francescocirillo.com/pages/pomodoro-technique) written in Python.

[![GitLab pipeline](https://img.shields.io/gitlab/pipeline/tedtramonte/pyomodoro)](https://gitlab.com/tedtramonte/pyomodoro/builds)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/pyomodoro)](https://pypi.org/project/pyomodoro/)
[![PyPI - License](https://img.shields.io/pypi/l/pyomodoro)](https://choosealicense.com/licenses/mit/)
[![PyPI - Version](https://img.shields.io/pypi/v/pyomodoro)](https://gitlab.com/tedtramonte/pyomodoro/-/releases)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyomodoro)](https://gitlab.com/tedtramonte/pyomodoro)
[![PyPI - Wheel](https://img.shields.io/pypi/wheel/pyomodoro)](https://gitlab.com/tedtramonte/pyomodoro)
[![PyPI - Status](https://img.shields.io/pypi/status/pyomodoro)](https://gitlab.com/tedtramonte/pyomodoro)

## Installation
The best way to install Pyomodoro is to use Pip.

```bash
pip install pyomodoro
```

## Usage
For convenience, both `pom` and `pyomodoro` are available as commands. Pyomodoro operates in your terminal, but if a notification tool is available, Pyomodoro will also send messages that way.

```bash
# Display help text
pom --help
pyomodoro --help

# Begin a session with the standard Francesco Cirillo timing intervals
pom

# Specify a task to focus on before you begin work
pom --ask-task

# Adjust the timing intervals to your liking
pom --pomodoro-length 30 --short-break-length 10 --long-break-length 45
```

## Configuration
There are three ways to adjust the values that Pyomodoro uses. In order of precedence:
1. Flags at run time
2. Environment variables
3. YAML config file

|            Flag           |         Env Var        |        YAML        |    Default   |
|:-------------------------:|:----------------------:|:------------------:|:------------:|
| --ask-task, -t            | POM_ASK_TASK           | ask_task           | False        |
| --config-file, -f         | POM_CONFIG_FILE        |                    | ~/.pyomodoro |
| --dry-run, -d             |                        | dry_run            | False        |
| --language, -l            | POM_LANGUAGE           | language           |              |
| --long-break-length, -lb  | POM_LONG_BREAK_LENGTH  | long_break_length  | 20           |
| --pomodoro-length, -p     | POM_POMODORO_LENGTH    | pomodoro_length    | 25           |
| --short-break-length, -sb | POM_SHORT_BREAK_LENGTH | short_break_length | 5            |

## Contributing
Merge requests are welcome after opening an issue first. Please make sure to update tests as appropriate.

### Development
Since part of Pyomodoro's key feature relies on an accessible notification system, testing that necessitates installing it locally:
```bash
pip install -e .
```

It is also useful to double check how Pyomodoro functions in a containerized environment, as the required tests are run in Docker containers:
```bash
docker run -it -v ${pwd}:/app python bash
cd /app
pip install tox
tox -e py
```


