{ "info": { "author": "Bojan Batalo", "author_email": "bbatalo@hotmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n# Block\n\n\n[![PyPI](https://img.shields.io/badge/pypi-0.0.3-blue.svg)](https://pypi.org/project/block-hosts/0.0.3/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n\nBlock 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.\n\n## Installing\n\nIt is possible to install Block using the Python package manager, pip:\n\n```\n$ pip install block-hosts\n```\n\n## Usage\n\nThe 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:\n\n```\n$ block-hosts block-all\n```\n\nand to unblock, run:\n\n```\n$ block-hosts unblock-all\n```\n\nTo block a profile of web sites, such as \"social\" or \"news\", run:\n\n```\n$ block-hosts block-profile PROFILE_NAME\n```\n\nand to unblock, run:\n\n```\n$ block-hosts unblock-profile PROFILE_NAME\n```\n\nTo block a single web site, run:\n\n```\n$ block-hosts WEBSITE_URL\n```\n\nwhere *website_url* refers to, you guessed it, the URL of the website you want to block. To reverse the action, run\n\n```\n$ block-hosts unblock WEBSITE_URL\n```\n\nNote: modifying the hosts file requires administrator privileges, so make sure that the terminal is in elevated mode.\n\nAnother note: you might need to restart the browser for changes to take effect.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bbatalo/block", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "block-hosts", "package_url": "https://pypi.org/project/block-hosts/", "platform": "", "project_url": "https://pypi.org/project/block-hosts/", "project_urls": { "Homepage": "https://github.com/bbatalo/block" }, "release_url": "https://pypi.org/project/block-hosts/0.0.3/", "requires_dist": [ "click", "python-hosts" ], "requires_python": ">=3.6.0", "summary": "Block helps you stop procrastinating, since you can't do it by yourself. It is a simple command-line utility that relies on modifying the hosts file to block websites that you use when procrastinating.", "version": "0.0.3" }, "last_serial": 5632109, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "301de12202cdbf5cc8199782e0310996", "sha256": "4d9970ee8a7448a4ccf756fe98facb5d3f01a5d70c7e1f387eea56dd1c7daea9" }, "downloads": -1, "filename": "block_hosts-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "301de12202cdbf5cc8199782e0310996", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 3690, "upload_time": "2018-10-31T13:31:00", "url": "https://files.pythonhosted.org/packages/6d/04/d9a6ce2a726c46437640bff1a405a9e6b49d52f193031ec85abad468b21c/block_hosts-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8e375c9c9193cf8f3188982fcff36535", "sha256": "6a14f1c2601949946360edcb36705806aa4c85cc8c361b9ba0c2bf8c0ba49ab7" }, "downloads": -1, "filename": "block_hosts-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8e375c9c9193cf8f3188982fcff36535", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 3373, "upload_time": "2018-10-31T13:31:01", "url": "https://files.pythonhosted.org/packages/a2/1d/7407f5b3b17d82eece25d4125993c84d825f67728ffc420b174e4283c158/block_hosts-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "99e38d1e139a77eb74339848ca826e86", "sha256": "aa84cd355eeec78d6f7e89fcc0db8d48c30115e29a49c32806c3761e63123043" }, "downloads": -1, "filename": "block_hosts-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "99e38d1e139a77eb74339848ca826e86", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4276, "upload_time": "2018-11-01T13:21:33", "url": "https://files.pythonhosted.org/packages/66/f5/c3ac05a53bbc26096cf11cd215d01ee61a88adf34e7651413900fa587980/block_hosts-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce259fe0fc8a9922e381e8cffb9c9f62", "sha256": "ac163dfe42cf4a0b215886e9e04c0a6506c39f8baa776560168725c9b9fab960" }, "downloads": -1, "filename": "block_hosts-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ce259fe0fc8a9922e381e8cffb9c9f62", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 3902, "upload_time": "2018-11-01T13:21:34", "url": "https://files.pythonhosted.org/packages/0c/41/221ea6d317ea6a3a23d3950c1832058f3679ec76fa10fa6c91f5dffadc5b/block_hosts-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "70007398fcc0c02a29d99cee04ce1e62", "sha256": "759bfba4695408a437b792c86ac181c4e75cd958ecae8dfef2c717ca19738d7c" }, "downloads": -1, "filename": "block_hosts-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "70007398fcc0c02a29d99cee04ce1e62", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5543, "upload_time": "2019-08-05T01:16:10", "url": "https://files.pythonhosted.org/packages/cc/ea/4def73795ecf94d6d5b691d13f73468e4e7780c2735b2627ccf7033b1b5c/block_hosts-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6448f0e4615370cb1e40cc28770470a3", "sha256": "4f5c6f9e246093d0f0f4cf12b7688c2fc5abe66c1467d4677e3a57fea922cfa1" }, "downloads": -1, "filename": "block_hosts-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6448f0e4615370cb1e40cc28770470a3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5135, "upload_time": "2019-08-05T01:16:12", "url": "https://files.pythonhosted.org/packages/16/40/402aac2e7136f653d590b06fc86a0414dcdaa3908e68545332ab1e6f2f9b/block_hosts-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "70007398fcc0c02a29d99cee04ce1e62", "sha256": "759bfba4695408a437b792c86ac181c4e75cd958ecae8dfef2c717ca19738d7c" }, "downloads": -1, "filename": "block_hosts-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "70007398fcc0c02a29d99cee04ce1e62", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5543, "upload_time": "2019-08-05T01:16:10", "url": "https://files.pythonhosted.org/packages/cc/ea/4def73795ecf94d6d5b691d13f73468e4e7780c2735b2627ccf7033b1b5c/block_hosts-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6448f0e4615370cb1e40cc28770470a3", "sha256": "4f5c6f9e246093d0f0f4cf12b7688c2fc5abe66c1467d4677e3a57fea922cfa1" }, "downloads": -1, "filename": "block_hosts-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6448f0e4615370cb1e40cc28770470a3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5135, "upload_time": "2019-08-05T01:16:12", "url": "https://files.pythonhosted.org/packages/16/40/402aac2e7136f653d590b06fc86a0414dcdaa3908e68545332ab1e6f2f9b/block_hosts-0.0.3.tar.gz" } ] }