Skip to main content

hostscli is a CLI tool to block / unblock websites using /etc/hosts

Project description

.. HostsCLI documentation master file, created by
sphinx-quickstart on Sat Jan 14 12:09:30 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

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

Project details


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.2.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page