Invenio-Formatter is on PyPI so all you need is:

$ pip install invenio-formatter

If you want to use the badge generation feature you need explicit enable it:

$ pip install invenio-formatter[badges]

This will install Pillow and CairoSVG library. For these libraries to work you must have the following system libraries installed with development headers:


Install the dependencies with your package manager. For Ubuntu or Debian:

$ sudo apt-get install libcairo2-dev


Install the dependencies above with Homebrew:

$ brew install cairo

Download the [DejaVu Sans]( font and install it on your system.