The set of the useful Python code snippets
pip install inhoj
Print in terminal with colors
Catch signals to allow graceful process shutdown
Package requirements are handled using pip. To install them do
pip install -r requirements.txt
Testing is set up using pytest and coverage is handled with the pytest-cov plugin.
Run your tests with
py.test in the root directory.
Coverage is ran by default and is set in the
To see an html output of coverage open
htmlcov/index.html after running the tests.
There is a
.travis.yml file that is set up to run your tests for python 2.7
and python 3.2, should you choose to use it.