Concentration
Read Latest Documentation - Browse GitHub Code Repository
Stay focused on work when you want, and goof off when you don't. Concentration is a simple Python 3 console utility to block distracting sites when you need to focus, while allowing you to easily take timed breaks. Concentration uses the /etc/hosts file as the mechanism to block sites, and works on Linux, Macintosh, and Windows.
Installing Concentration
pip3 install concentration
Or, if pip is already set to use Python 3
pip install concentration
Or, if you wanted concentration installed and ran in an isolated environment, consider using pipx:
pipx run concentration
Using Concentration
To keep focused (blocking distracting sites):
sudo concentration improve
To take a small 5 minute timed break:
sudo concentration break
To take a long 60 minute timed break:
sudo concentration break -m 60
You can cancel breaks with Ctrl-C.
To disable blocking until you explicitly enable it again:
sudo concentration lose
Configuring Concentration
You can add more files to the blocked list by putting them in the following files (new line delimited):
- ~/.concentration.distractors
- /etc/concentration.distractors
You can make sure sites are visible even if concentration is enabled by putting them in the following files (new line delimited):
- ~/.concentration.safe
- /etc/concentration.safe
Thanks and I hope you find concentration useful in your effort to get more done!
~Timothy Crosley
Metadata
Release files for concentration 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| concentration-1.1.5.tar.gz | 6.1 kB | Without provenance | Details for concentration-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| concentration-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for concentration-1.1.5-py3-none-any.whl |
Total release size: 12.8 kB
Release files / concentration-1.1.5.tar.gz
| Download URL | concentration-1.1.5.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
861ac13fea2b1f2828f9aaf6449b77552ad0ff9bfc2336be8b8508f21b7a3e55
|
|
BLAKE2b-256 checksum How to use checksums |
dd31ce1a195f48e14a8256ef9a784987cce85b4476cebe039a7c22514cc01653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-7642-generic
|
Release files / concentration-1.1.5-py3-none-any.whl
| Download URL | concentration-1.1.5-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd0fdef47d702add9498fc88ae5889cd79fa2163835e646d90cd5c066a523ca8
|
|
BLAKE2b-256 checksum How to use checksums |
79b6eb430e5cddbfaa836b6963d028d0802bd80604e6f40f002044fd4340c841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-7642-generic
|
Security for concentration 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.