brotlipy
Python binding to the Brotli library
Decision gist · record as of 2026-08-14
Yes, if you need Brotli compression in Python and are on a supported platform. The package is actively maintained with a recent commit on 2026-03-05, has no known vulnerabilities, and receives substantial downloads. However, the last release was 2017-05-30 and classifiers target Python 2.7 through 3.5; verify compatibility with your Python version before adopting in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a C compiler if prebuilt wheels are not available for your Python version and platform.
- Medium install friction due to compiled C extensions; prebuilt wheels are available for common platforms (Python 2.7, 3.3–3.5 on macOS, Linux, and Windows), but older Python versions and less common architectures may require compilation.
License · maintenance · safety
MIT (permissive) — Licensed under MIT; the underlying Brotli library is Apache License 2.0. Both are permissive, so you can use this in commercial and proprietary projects without restriction.
last release 2017-05-30 (3363 days) · last repo commit 2026-03-05 · 154 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,876,211 downloads/mo, #3,470 on PyPI
Alternatives
Verify before relying
pip install brotlipy
import brotlipy
data = brotlipy.decompress(compressed_data)- Whether the package works reliably on modern Python versions given the last release was 2017-05-30.
- Current performance characteristics compared to alternative Brotli compression solutions.
- Compatibility with Python versions beyond 3.5 despite active repository status.
What it is and what it does
brotlipy is a Python wrapper around Google's Brotli compression library. It exposes both one-shot compression and decompression functions and a streaming API for incremental processing. The package bundles the Brotli C library and compiles it during installation, so it has no Python runtime dependencies but does require a C compiler on platforms without prebuilt wheels.
The library is used to add Brotli support to Python applications that need efficient compression—commonly in HTTP clients and servers, data pipelines, and tools that work with Brotli-compressed content. It supports compression and decompression with configurable parameters, and includes a streaming decompressor with a finish() method for handling incomplete data.
Use it for
- Decompress Brotli-encoded HTTP responses in web clients or scraping tools.
- Compress data for storage or transmission using Brotli in data processing pipelines.
- Incrementally decompress large Brotli-compressed files without loading them entirely into memory.
- Add Brotli support to HTTP servers or reverse proxies that handle compressed payloads.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Brotli compression in Python and are on a supported platform.
The package is actively maintained with a recent commit on 2026-03-05, has no known vulnerabilities, and receives substantial downloads. However, the last release was 2017-05-30 and classifiers target Python 2.7 through 3.5; verify compatibility with your Python version before adopting in new projects.
Install
brotlipy on PyPI
Before you install
Medium install friction due to compiled C extensions; prebuilt wheels are available for common platforms (Python 2.7, 3.3–3.5 on macOS, Linux, and Windows), but older Python versions and less common architectures may require compilation.
Requires a C compiler if prebuilt wheels are not available for your Python version and platform.
License in practice
Licensed under MIT; the underlying Brotli library is Apache License 2.0. Both are permissive, so you can use this in commercial and proprietary projects without restriction.
Quickstart
pip install brotlipy
import brotlipy
data = brotlipy.decompress(compressed_data)
Verify before relying
- Whether the package works reliably on modern Python versions given the last release was 2017-05-30.
- Current performance characteristics compared to alternative Brotli compression solutions.
- Compatibility with Python versions beyond 3.5 despite active repository status.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 3,363 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,876,211 / month, #3,470 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: brotlipy-0.7.0-cp27-cp27m-macosx_10_6_intel.whl; brotlipy-0.7.0-cp27-cp27m-manylinux1_i686.whl; brotlipy-0.7.0-cp27-cp27m-manylinux1_x86_64.whl; brotlipy-0.7.0-cp27-cp27mu-manylinux1_i686.whl; brotlipy-0.7.0-cp27-cp27mu-manylinux1_x86_64.whl; brotlipy-0.7.0-cp27-cp27m-win32.whl; brotlipy-0.7.0-cp27-cp27m-win_amd64.whl; brotlipy-0.7.0-cp33-cp33m-macosx_10_6_intel.whl; brotlipy-0.7.0-cp33-cp33m-manylinux1_i686.whl; brotlipy-0.7.0-cp33-cp33m-manylinux1_x86_64.whl; brotlipy-0.7.0-cp33-cp33m-win32.whl; brotlipy-0.7.0-cp33-cp33m-win_amd64.whl; brotlipy-0.7.0-cp34-cp34m-macosx_10_6_intel.whl; brotlipy-0.7.0-cp34-cp34m-manylinux1_i686.whl; brotlipy-0.7.0-cp34-cp34m-manylinux1_x86_64.whl; brotlipy-0.7.0-cp34-cp34m-win32.whl; brotlipy-0.7.0-cp34-cp34m-win_amd64.whl; brotlipy-0.7.0-cp35-abi3-macosx_10_9_x86_64.whl; brotlipy-0.7.0-cp35-abi3-manylinux1_i686.whl; brotlipy-0.7.0-cp35-abi3-manylinux1_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “brotli compression python”
- brotlipybrotlipy provides Python bindings to the Brotli compression…
- brotlicffiProvides Python CFFI bindings to the Brotli compression library,…
- brotliProvides Python bindings to the Brotli compression library, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also brotli · brotlicffi · brotli-asgi · python-lzf · Flask-Compress · python-neo-lzf · astc-encoder-py · apple-compress · lzallright · cramjam