Skip to content

Build Instructions


In most cases you won't need to build this package locally.

Unless you're doing development work on the kglab library itself, simply install based on the instructions in "Getting Started".


To set up the build environment locally:

pip install -r requirements_build.txt

You will also need to download ChromeDriver for your version of the Chrome brower, saved as chromedriver in this directory.

Type Checking

This project uses typing and mypy for type checking.

To run type checking:

mypy kglab/*.py

Code Checking

This project uses pylint for code checking.

To run code checking:

pylint kglab/*.py

Test Coverage

This project uses unittest and coverage for unit test coverage. Source for unit tests is in the module.

To run unit tests:

coverage run -m unittest discover

To generate a coverage report and (providing you have the access token) upload it to the reporting site:

coverage report
bash <(curl -s -t @.cc_token

Test coverage reports can be viewed at

Online Documentation

To generate documentation pages, this project uses:

Source for the documentation is in the docs subdirectory.

To build the documentation:

./ docs/
mkdocs build

To preview the generated microsite locally:


Then browse to http://localhost:8000 to review the generated documentation.

To package the generated microsite for deployment on a Flask/WSGI server:

tar cvzf kgl.tgz site/

Package Release

To update the release on PyPi:


Last update: 2021-01-14