--- id: brotlipy version: "0.7.0" license: MIT license_treatment: permissive maintenance: active --- # brotlipy — Python binding to the Brotli library License: permissive · Maintenance: active · Downloads: 1.9M/mo ## 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 above — verify before relying. brotlipy provides Python bindings to the Brotli compression algorithm, allowing you to compress and decompress data using Brotli directly from Python code. 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 pip install brotlipy uv add brotlipy poetry add brotlipy ## Installing brotlipy 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. 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) Requires a C compiler if prebuilt wheels are not available for your Python version and platform. 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: unspecified - Install friction: medium - Maintenance: active - Downloads: 1.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags brotli compression python, python brotli encoder decoder, compress decompress brotli, brotli bindings python, streaming compression brotli, compression, brotli [View on SkillFed](https://skillfed.io/packages/brotlipy) · [View on PyPI](https://pypi.org/project/brotlipy/)