tree: a735ca72af9f32baff9bed4201ae1b4068087259 [path history] [tgz]
  1. tests/
  2. _brotli.cc
  3. bro.py
  4. brotli.py
  5. README.md
python/README.md

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

Development

To build the module, execute the following from the root project directory:

$ python setup.py build_ext

To test the module, execute the following from the root project directory:

$ python setup.py test

Code Style

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

$ pip install yapf

Then, either format a single file:

$ yapf --in-place FILE

Or, format all files in a directory:

$ yapf --in-place --recursive DIR

See the YAPF usage documentation for more information.