Skip to content

Commit 0307da0

Browse files
authored
Release 1.0.9.0
1 parent f9255f2 commit 0307da0

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

HISTORY.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Changelog
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+
415
0.8.0 (2020-11-30)
516
------------------
617

README.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
BrotliCFFI
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+
416
This library contains Python CFFI bindings for the reference Brotli encoder/decoder,
517
`available here`_. This allows Python software to use the Brotli compression
618
algorithm 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`_.
2442
We recommend installing the C bindings on CPython and the CFFI
2543
bindings 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
2864
libraries together to support Brotli with multiple Python implementations.
2965

0 commit comments

Comments
 (0)