brotli/python
Alex Nicksay 9203765492 Python: Use "build" instead of "build_ext" in scripts (#460)
Previously, the Python package consisted of a single extension
module, so `build_ext` was sufficient.  Now, the package
contains a native module and an extension module, so both
`build_py` and `build_ext` are required.  Instead, run `build`,
which calls both `build_py` and `build_ext` automatically.
2016-10-31 12:58:45 +01:00
..
tests Restore platform suffix 2016-06-17 20:24:24 +02:00
_brotli.cc Python: Support streamed compression with the Compressor object (#448) 2016-10-24 13:28:56 +02:00
bro.py Add binding for custom_dictionary. 2016-02-23 17:42:55 +01:00
brotli.py Python: Publicly expose the Compressor object in the Python API (#456) 2016-10-25 10:19:29 +02:00
README.md Python: Use "build" instead of "build_ext" in scripts (#460) 2016-10-31 12:58:45 +01:00

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

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.