hostscli is a CLI tool to block / unblock websites using /etc/hosts
Project description
HostsCLI Docs
=============
A CLI tool to block / unblock websites using /etc/hosts. Super simple and easily extendable.
Links
-----
.. list-table::
:stub-columns: 1
* - Docs Link
- http://hostscli.readthedocs.io/
* - GitHub Link
- https://github.com/dhilipsiva/hostscli
* - PyPI Link
- https://pypi.python.org/pypi/hostscli
Badges
------
.. start-badges
.. list-table::
:stub-columns: 1
* - Docs
- |docs|
* - GitHub
- | |gh-issues| |gh-forks| |gh-stars| |gh-license|
* - Tests
- | |travis| |requires| |coverage| |code-climate| |cc-issues|
* - Thanks
- |say-thanks|
.. |docs| image:: https://readthedocs.org/projects/hostscli/badge/?version=latest
:target: http://hostscli.readthedocs.io/?badge=latest
:alt: Documentation Status
.. |gh-issues| image:: https://img.shields.io/github/issues/dhilipsiva/hostscli.svg
:target: https://github.com/dhilipsiva/hostscli/issues
:alt: GitHub Issues
.. |gh-forks| image:: https://img.shields.io/github/forks/dhilipsiva/hostscli.svg
:target: https://github.com/dhilipsiva/hostscli/network
:alt: GitHub Forks
.. |gh-stars| image:: https://img.shields.io/github/stars/dhilipsiva/hostscli.svg
:target: https://github.com/dhilipsiva/hostscli/stargazers
:alt: GitHub Stars
.. |gh-license| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://raw.githubusercontent.com/dhilipsiva/hostscli/master/LICENSE
:alt: GitHub LICENSE
.. |travis| image:: https://travis-ci.org/dhilipsiva/hostscli.svg?branch=master
:target: https://travis-ci.org/dhilipsiva/hostscli
:alt: Travis
.. |requires| image:: https://requires.io/github/dhilipsiva/hostscli/requirements.svg?branch=master
:target: https://requires.io/github/dhilipsiva/hostscli/requirements/?branch=master
:alt: Requirements Status
.. |coverage| image:: https://codecov.io/gh/dhilipsiva/hostscli/branch/master/graph/badge.svg
:target: https://codecov.io/gh/dhilipsiva/hostscli
:alt: Coverage
.. |code-climate| image:: https://codeclimate.com/github/dhilipsiva/hostscli/badges/gpa.svg
:target: https://codeclimate.com/github/dhilipsiva/hostscli
:alt: Code Climate
.. |cc-issues| image:: https://codeclimate.com/github/dhilipsiva/hostscli/badges/issue_count.svg
:target: https://codeclimate.com/github/dhilipsiva/hostscli
:alt: Issue Count
.. |say-thanks| image:: https://img.shields.io/badge/saythanks.io-%E2%98%BC-1EAEDB.svg
:target: https://saythanks.io/to/dhilipsiva
:alt: Say thanks :)
.. end-badges
.. automodule:: hostscli
:members:
:undoc-members:
:show-inheritance:
More websites?
==============
If you need to add more websites, just create a ``<website>.py`` file in `hostscli/websites/ <https://github.com/dhilipsiva/hostscli/tree/master/hostscli/websites>`_ directory with list of domains declared as variable `DOMAINS`.
Please look at `hostscli/websites/facebook.py <https://github.com/dhilipsiva/hostscli/blob/master/hostscli/websites/facebook.py>`_ file for reference
=============
A CLI tool to block / unblock websites using /etc/hosts. Super simple and easily extendable.
Links
-----
.. list-table::
:stub-columns: 1
* - Docs Link
- http://hostscli.readthedocs.io/
* - GitHub Link
- https://github.com/dhilipsiva/hostscli
* - PyPI Link
- https://pypi.python.org/pypi/hostscli
Badges
------
.. start-badges
.. list-table::
:stub-columns: 1
* - Docs
- |docs|
* - GitHub
- | |gh-issues| |gh-forks| |gh-stars| |gh-license|
* - Tests
- | |travis| |requires| |coverage| |code-climate| |cc-issues|
* - Thanks
- |say-thanks|
.. |docs| image:: https://readthedocs.org/projects/hostscli/badge/?version=latest
:target: http://hostscli.readthedocs.io/?badge=latest
:alt: Documentation Status
.. |gh-issues| image:: https://img.shields.io/github/issues/dhilipsiva/hostscli.svg
:target: https://github.com/dhilipsiva/hostscli/issues
:alt: GitHub Issues
.. |gh-forks| image:: https://img.shields.io/github/forks/dhilipsiva/hostscli.svg
:target: https://github.com/dhilipsiva/hostscli/network
:alt: GitHub Forks
.. |gh-stars| image:: https://img.shields.io/github/stars/dhilipsiva/hostscli.svg
:target: https://github.com/dhilipsiva/hostscli/stargazers
:alt: GitHub Stars
.. |gh-license| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://raw.githubusercontent.com/dhilipsiva/hostscli/master/LICENSE
:alt: GitHub LICENSE
.. |travis| image:: https://travis-ci.org/dhilipsiva/hostscli.svg?branch=master
:target: https://travis-ci.org/dhilipsiva/hostscli
:alt: Travis
.. |requires| image:: https://requires.io/github/dhilipsiva/hostscli/requirements.svg?branch=master
:target: https://requires.io/github/dhilipsiva/hostscli/requirements/?branch=master
:alt: Requirements Status
.. |coverage| image:: https://codecov.io/gh/dhilipsiva/hostscli/branch/master/graph/badge.svg
:target: https://codecov.io/gh/dhilipsiva/hostscli
:alt: Coverage
.. |code-climate| image:: https://codeclimate.com/github/dhilipsiva/hostscli/badges/gpa.svg
:target: https://codeclimate.com/github/dhilipsiva/hostscli
:alt: Code Climate
.. |cc-issues| image:: https://codeclimate.com/github/dhilipsiva/hostscli/badges/issue_count.svg
:target: https://codeclimate.com/github/dhilipsiva/hostscli
:alt: Issue Count
.. |say-thanks| image:: https://img.shields.io/badge/saythanks.io-%E2%98%BC-1EAEDB.svg
:target: https://saythanks.io/to/dhilipsiva
:alt: Say thanks :)
.. end-badges
.. automodule:: hostscli
:members:
:undoc-members:
:show-inheritance:
More websites?
==============
If you need to add more websites, just create a ``<website>.py`` file in `hostscli/websites/ <https://github.com/dhilipsiva/hostscli/tree/master/hostscli/websites>`_ directory with list of domains declared as variable `DOMAINS`.
Please look at `hostscli/websites/facebook.py <https://github.com/dhilipsiva/hostscli/blob/master/hostscli/websites/facebook.py>`_ file for reference
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
hostscli-1.0.3.tar.gz
(5.2 kB
view hashes)