File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ 1.0.9.0 (2021-01-20)
5+ --------------------
6+
7+ - Updated to v1.0.9 of the Brotli library
8+ - Library version now follows Brotli version
9+ - Removed the ``dictionary `` parameter from ``compress `` and ``Compressor ``
10+ - **NOTE: ** Python 2.7 wheels for Windows likely won't work until
11+ `google/brotli#848 `_ is resolved
12+
13+ .. _google/brotli#848 : https://github.com/google/brotli/issues/848
14+
4150.8.0 (2020-11-30)
516------------------
617
Original file line number Diff line number Diff line change 11BrotliCFFI
22==========
33
4+ .. image :: https://img.shields.io/pypi/v/brotlicffi
5+ :alt: Version
6+ :target: https://pypi.org/project/brotlicffi
7+
8+ .. image :: https://pepy.tech/badge/brotlicffi
9+ :alt: Downloads
10+ :target: https://pepy.tech/project/brotlicffi
11+
12+ .. image :: https://img.shields.io/github/workflow/status/python-hyper/brotlicffi/CI/master
13+ :alt: CI Status
14+ :target: https://github.com/python-hyper/brotlicffi/actions
15+
416This library contains Python CFFI bindings for the reference Brotli encoder/decoder,
517`available here `_. This allows Python software to use the Brotli compression
618algorithm directly from Python code.
719
20+ Install from PyPI:
21+
22+ .. code-block ::
23+
24+ $ python -m pip install brotlicffi
25+
826 To use it simply, try this:
927
1028.. code-block :: python
@@ -24,6 +42,24 @@ The API is 100% compatible with the `Brotli Python C bindings`_.
2442We recommend installing the C bindings on CPython and the CFFI
2543bindings everywhere else (PyPy, etc)
2644
45+ Essentially you use requirements like this:
46+
47+ .. code-block :: python
48+
49+ install_requires= [
50+ " brotli; platform_python_implementation == 'CPython'" ,
51+ " brotlicffi; platform_python_implementation != 'CPython'"
52+ ]
53+
54+ and then import the correct Brotli library like so:
55+
56+ .. code-block :: python
57+
58+ try :
59+ import brotlicffi as brotli
60+ except ImportError :
61+ import brotli
62+
2763 We provide an `example project `_ that shows how to use both
2864libraries together to support Brotli with multiple Python implementations.
2965
You can’t perform that action at this time.
0 commit comments