brotli/python
Eugene Kliuchnikov 0ee416139f Update python brotli wrapper (#479)
* Update python brotli wrapper
 * release GIL on CPU intensive blocks, fixes #476
 * use BrotliDecoderTakeOutput (less memory, less memcpy)

* Python: Convert bro.py tests to unittest style (#478)

* Create unittest-style tests for `bro.py` decompression and compression
* Delete old tests for `bro.py`
* Update test method generation to properly create a Cartesian product
  of iterables using `itertools.product`

* Update python brotli wrapper
 * release GIL on CPU intensive blocks, fixes #476
 * use BrotliDecoderTakeOutput (less memory, less memcpy)
2016-12-12 10:27:13 +01:00
..
tests Python: Convert bro.py tests to unittest style (#478) 2016-12-09 13:44:05 +01:00
_brotli.cc Update python brotli wrapper (#479) 2016-12-12 10:27:13 +01: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.