Skip to main content

Python binding to the Brotli library

Project description

brotlipy

This library contains Python bindings for the reference Brotli encoder/decoder, available here. This allows Python software to use the Brotli compression algorithm directly from Python code.

To use it simply, try this:

import brotli
data = brotli.decompress(compressed_data)

More information can be found in the documentation.

License

The source code of brotlipy is available under the MIT license. Brotli itself is made available under the Version 2.0 of the Apache Software License. See the LICENSE and libbrotli/LICENSE files for more information.

Authors

brotlipy is maintained by Cory Benfield.

Changelog

0.7.0 (2017-05-30)

  • Update to v0.6.0 of the Brotli library.

0.6.0 (2016-09-08)

  • Resolved a bug where decompress() would return an empty bytestring instead of erroring if the provided bytestring was small enough.

  • Added the finish() method to the streaming decompressor.

0.5.1 (2016-08-17)

  • Update to v0.5.2 of the Brotli library.

  • Add new exception type (Error).

  • Add compatiblity with C++ brotli library by aliasing Error to error.

  • Extra error checking of input parameters to the compressor.

0.5.0 (2016-08-16)

  • Update to v0.5.0 of the Brotli library.

  • Extend one-shot compression API to include all control parameters.

  • Added streaming/incremental compression API.

  • Added flags to control compression mode.

0.4.0 (2016-08-01)

Update to v0.4.0 of the Brotli library.

0.3.0 (2016-05-11)

Update to v0.3.0 of the Brotli library.

0.2.0 (2015-10-05)

Fix broken brotli.compress support on Windows.

0.1.3 (2015-10-05)

  • Added basic for brotli.compress through a C wrapper included in this library.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brotlipy-0.7.0.tar.gz (413.3 kB view hashes)

Uploaded Source

Built Distributions

brotlipy-0.7.0-pp226-pp226u-macosx_10_10_x86_64.whl (349.6 kB view hashes)

Uploaded PyPy macOS 10.10+ x86-64

brotlipy-0.7.0-cp39-cp39-manylinux1_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.9

brotlipy-0.7.0-cp39-cp39-manylinux1_i686.whl (995.5 kB view hashes)

Uploaded CPython 3.9

brotlipy-0.7.0-cp38-cp38-manylinux1_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.8

brotlipy-0.7.0-cp38-cp38-manylinux1_i686.whl (995.9 kB view hashes)

Uploaded CPython 3.8

brotlipy-0.7.0-cp37-cp37m-win_amd64.whl (372.8 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

brotlipy-0.7.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (929.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

brotlipy-0.7.0-cp37-cp37m-macosx_10_14_x86_64.whl (389.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

brotlipy-0.7.0-cp36-cp36m-win_amd64.whl (358.4 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

brotlipy-0.7.0-cp36-cp36m-win32.whl (342.6 kB view hashes)

Uploaded CPython 3.6m Windows x86

brotlipy-0.7.0-cp36-cp36m-manylinux1_x86_64.whl (920.6 kB view hashes)

Uploaded CPython 3.6m

brotlipy-0.7.0-cp36-cp36m-manylinux1_i686.whl (844.1 kB view hashes)

Uploaded CPython 3.6m

brotlipy-0.7.0-cp36-cp36m-macosx_10_6_intel.whl (678.5 kB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

brotlipy-0.7.0-cp35-cp35m-win_amd64.whl (358.4 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

brotlipy-0.7.0-cp35-cp35m-win32.whl (342.6 kB view hashes)

Uploaded CPython 3.5m Windows x86

brotlipy-0.7.0-cp35-cp35m-manylinux1_x86_64.whl (920.5 kB view hashes)

Uploaded CPython 3.5m

brotlipy-0.7.0-cp35-cp35m-manylinux1_i686.whl (844.1 kB view hashes)

Uploaded CPython 3.5m

brotlipy-0.7.0-cp35-cp35m-macosx_10_6_intel.whl (678.5 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ intel

brotlipy-0.7.0-cp35-abi3-win_amd64.whl (376.3 kB view hashes)

Uploaded CPython 3.5+ Windows x86-64

brotlipy-0.7.0-cp35-abi3-win32.whl (350.1 kB view hashes)

Uploaded CPython 3.5+ Windows x86

brotlipy-0.7.0-cp35-abi3-manylinux2014_aarch64.whl (1.0 MB view hashes)

Uploaded CPython 3.5+

brotlipy-0.7.0-cp35-abi3-manylinux2010_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.5+ manylinux: glibc 2.12+ x86-64

brotlipy-0.7.0-cp35-abi3-manylinux2010_i686.whl (995.7 kB view hashes)

Uploaded CPython 3.5+ manylinux: glibc 2.12+ i686

brotlipy-0.7.0-cp35-abi3-manylinux1_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.5+

brotlipy-0.7.0-cp35-abi3-manylinux1_i686.whl (995.7 kB view hashes)

Uploaded CPython 3.5+

brotlipy-0.7.0-cp35-abi3-macosx_10_9_x86_64.whl (390.7 kB view hashes)

Uploaded CPython 3.5+ macOS 10.9+ x86-64

brotlipy-0.7.0-cp34-cp34m-win_amd64.whl (353.8 kB view hashes)

Uploaded CPython 3.4m Windows x86-64

brotlipy-0.7.0-cp34-cp34m-win32.whl (345.8 kB view hashes)

Uploaded CPython 3.4m Windows x86

brotlipy-0.7.0-cp34-cp34m-manylinux1_x86_64.whl (920.5 kB view hashes)

Uploaded CPython 3.4m

brotlipy-0.7.0-cp34-cp34m-manylinux1_i686.whl (844.1 kB view hashes)

Uploaded CPython 3.4m

brotlipy-0.7.0-cp34-cp34m-macosx_10_6_intel.whl (678.5 kB view hashes)

Uploaded CPython 3.4m macOS 10.6+ intel

brotlipy-0.7.0-cp33-cp33m-win_amd64.whl (353.8 kB view hashes)

Uploaded CPython 3.3m Windows x86-64

brotlipy-0.7.0-cp33-cp33m-win32.whl (345.8 kB view hashes)

Uploaded CPython 3.3m Windows x86

brotlipy-0.7.0-cp33-cp33m-manylinux1_x86_64.whl (920.4 kB view hashes)

Uploaded CPython 3.3m

brotlipy-0.7.0-cp33-cp33m-manylinux1_i686.whl (844.0 kB view hashes)

Uploaded CPython 3.3m

brotlipy-0.7.0-cp33-cp33m-macosx_10_6_intel.whl (678.5 kB view hashes)

Uploaded CPython 3.3m macOS 10.6+ intel

brotlipy-0.7.0-cp27-cp27mu-manylinux1_x86_64.whl (919.1 kB view hashes)

Uploaded CPython 2.7mu

brotlipy-0.7.0-cp27-cp27mu-manylinux1_i686.whl (845.4 kB view hashes)

Uploaded CPython 2.7mu

brotlipy-0.7.0-cp27-cp27m-win_amd64.whl (354.1 kB view hashes)

Uploaded CPython 2.7m Windows x86-64

brotlipy-0.7.0-cp27-cp27m-win32.whl (344.9 kB view hashes)

Uploaded CPython 2.7m Windows x86

brotlipy-0.7.0-cp27-cp27m-manylinux1_x86_64.whl (919.1 kB view hashes)

Uploaded CPython 2.7m

brotlipy-0.7.0-cp27-cp27m-manylinux1_i686.whl (845.4 kB view hashes)

Uploaded CPython 2.7m

brotlipy-0.7.0-cp27-cp27m-macosx_10_6_intel.whl (678.4 kB view hashes)

Uploaded CPython 2.7m macOS 10.6+ intel

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page