Skip to main content

Get work done when you need to, goof off when you don't.

Project description


Join the chat at

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. Internally uses /etc/hosts file as the mechanism to block sites.

Concentration Example

Concentration Example

Installing Concentration

pip3 install concentration

# Or if pip is already set to use Python 3
pip install 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

To access all sites:

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): - ~/ - /etc/

Thanks and I hope you find concentration useful in your effort to get more done!

~Timothy Crosley

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for concentration, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size concentration-1.1.1-py2.py3-none-any.whl (7.5 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size concentration-1.1.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page