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.
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:
- Flags at run time
- Environment variables
- 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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | abcf419493d11fbcd5ad45824fcf8cc6b77a118d58a2f62863789bcd3e28984d |
|
MD5 | 6acb7f8c86cf5048d62e4bc9d1e0a1fd |
|
BLAKE2b-256 | e8d3a40a177dba7d2baae732d970d1c6c37db8a96cb887b77349d6c8fb6f48cd |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eaf9fc5bc1fe5fcea00df5e2bb3b330e30013683508d64ae4416e75270055b3 |
|
MD5 | 3560a2860ab2cf04fb644c126ab79974 |
|
BLAKE2b-256 | 8da6e1bcbe633596990b39df1499636bf75c189116b85fe0a1c1869b53baaff0 |