Limit the time you procrastinate by blocking websites via the hosts file
Project description
procrust
Limit the time you procrastinate by blocking websites via the hosts file.
Usage
Edit block list
Open the list of host names to block when not procrastinating for editing:
procrust edit
Add one host name per line.
Start and stop procrastinating
When you start and stop procrastinating the hosts file will be changed, so you need to run the command with root privileges. If you ran the edit
command without sudo
you need to preserve the environment with the -E
option.
sudo -E procrust start
sudo -E procrust stop
Installation
Install the procrust
command globally so it is accessible by the root user.
git clone https://github.com/yaph/procrust.git
cd procrust
sudo python3 setup.py install
Authors
procrust
was written by Ramiro Gómez.
Project details
Release history Release notifications | RSS feed
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 procrust-0.1.0.tar.gz
.
File metadata
- Download URL: procrust-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24659e40e5f180a902ceb29e87ed34516e50615ee97e4684ce8c099c484fe1ef |
|
MD5 | 38b84372c0004a9802fa56398df89c8d |
|
BLAKE2b-256 | 7c7bf5b26820383283925dd29da65fc4d5f776a2a828cee2c4af0a6aa80905d3 |
File details
Details for the file procrust-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: procrust-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d251cabf6b37162b87c65f20d324f380ac33b8b9f4785fdc718fc9bed57c5b |
|
MD5 | 3e993ad41ee43b1eef8933c3d805c281 |
|
BLAKE2b-256 | f18c6c210d9283d2c6a4537731c8d1eeaf5b9919181c76b223580bf3055578f7 |