Skip to main content

An easy to use CLI for the Pomodoro Technique.

Project description

Pyomodoro

Pyomodoro is an easy to use CLI for the Pomodoro Technique written in Python.

GitLab pipeline PyPI - Downloads PyPI - License PyPI - Version PyPI - Python Version PyPI - Wheel PyPI - Status

Installation

The best way to install Pyomodoro is to use Pip.

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.

# 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:

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:

docker run -it -v ${pwd}:/app python bash
cd /app
pip install tox
tox -e py

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

pyomodoro-1.0.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

pyomodoro-1.0.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file pyomodoro-1.0.0.tar.gz.

File metadata

  • Download URL: pyomodoro-1.0.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.9.0

File hashes

Hashes for pyomodoro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 abcf419493d11fbcd5ad45824fcf8cc6b77a118d58a2f62863789bcd3e28984d
MD5 6acb7f8c86cf5048d62e4bc9d1e0a1fd
BLAKE2b-256 e8d3a40a177dba7d2baae732d970d1c6c37db8a96cb887b77349d6c8fb6f48cd

See more details on using hashes here.

File details

Details for the file pyomodoro-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyomodoro-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.9.0

File hashes

Hashes for pyomodoro-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6eaf9fc5bc1fe5fcea00df5e2bb3b330e30013683508d64ae4416e75270055b3
MD5 3560a2860ab2cf04fb644c126ab79974
BLAKE2b-256 8da6e1bcbe633596990b39df1499636bf75c189116b85fe0a1c1869b53baaff0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page