Block is a simple Python-based command line utility for blocking access to web-sites in order to stop you from procrastinating, because you can't do it by yourself. Relies on modifying the hosts file.
Project description
Block
Block is a simple Python-based command line utility for blocking access to web-sites in order to stop you from procrastinating, because you can't do it by yourself. Relies on modifying the hosts file.
Installing
Under construction.
Usage
The simplest and most common usage of Block is to block all sites in a curated list. To do this, run the following command in the console:
$ block curated
and to unblock, run:
$ block unblock
To block a single web site, run:
$ block website_url
where website_url refers to, you guessed it, the URL of the website you want to block. To reverse the action, run
$ block unblock website_url
Note: modifying the hosts file requires administrator privileges, so make sure that the terminal is in elevated mode.
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
Hashes for block_hosts-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d9970ee8a7448a4ccf756fe98facb5d3f01a5d70c7e1f387eea56dd1c7daea9 |
|
MD5 | 301de12202cdbf5cc8199782e0310996 |
|
BLAKE2b-256 | 6d04d9a6ce2a726c46437640bff1a405a9e6b49d52f193031ec85abad468b21c |