tree: c3450a0da9127e7974e8cd0450f92a82ca689e9d [path history] [tgz]
  1. tests/
  5. Makefile

This directory contains the code for the Python brotli module, tool, and roundtrip tests.


If you just want to install the module from source, execute the following from the root project directory:

$ python install


For development, reinstalling the module with every change is time consuming. Instead, we recommend using the setuptoolsdevelopment mode” to make the module available while still being able to edit the source files.

We provide a Makefile to simplify common commands:

$ make          # Deploy the module in "development mode"

$ make tests    # Test the module

$ make clean    # Remove all temporary files and build output

Code Style

Brotli's code follows the Google Python Style Guide. To automatically format your code, first install YAPF:

$ pip install yapf

Then, to format all files in the project, you can run:

$ make fix      # Automatically format code

See the YAPF usage documentation for more information.