Skip to main content

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.

Metadata

Release files for procrust 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for procrust 0.1.0
File Size Uploaded
procrust-0.1.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for procrust 0.1.0
File Interpreter ABI Platform
procrust-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / procrust-0.1.0.tar.gz

Download URL procrust-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
24659e40e5f180a902ceb29e87ed34516e50615ee97e4684ce8c099c484fe1ef
BLAKE2b-256 checksum
How to use checksums
7c7bf5b26820383283925dd29da65fc4d5f776a2a828cee2c4af0a6aa80905d3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / procrust-0.1.0-py3-none-any.whl

Download URL procrust-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72d251cabf6b37162b87c65f20d324f380ac33b8b9f4785fdc718fc9bed57c5b
BLAKE2b-256 checksum
How to use checksums
f18c6c210d9283d2c6a4537731c8d1eeaf5b9919181c76b223580bf3055578f7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page