{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Provides Python CFFI bindings to the Brotli compression library, enabling Brotli compression and decompression from Python code with an API compatible with the C bindings.","skillfed_tags":["compression","cffi","pypy-compatible"],"use_cases":["Decompress Brotli-encoded HTTP responses in web clients or servers running PyPy or alternative Python implementations.","Streaming compression of large files or network data using the Compressor/Decompressor classes with incremental processing.","Cross-implementation Python projects that need Brotli support on both CPython and PyPy using conditional dependencies.","Protect against maliciously crafted compressed data by setting output_buffer_limit on decompression operations.","Build HTTP middleware or reverse proxies that handle Brotli content encoding on platforms where C extensions are unavailable."],"what_it_does":"BrotliCFFI is a Python wrapper around the Brotli compression algorithm, implemented using CFFI (C Foreign Function Interface) rather than C extensions. It provides both one-shot compression/decompression functions and streaming APIs for incremental processing. The package is designed as a drop-in alternative to the native Brotli C bindings, with identical API compatibility, making it particularly useful for PyPy and other non-CPython implementations where C extensions are impractical.\n\nThe library depends only on cffi and wraps the reference Brotli encoder/decoder from Google. It supports modern Python versions (3.8 through 3.14, including free-threaded builds) and multiple platforms. Recent versions include security-focused features like output buffer limits to mitigate decompression bombs, and explicit exception handling for concurrent access to compressor/decompressor objects.","worth_installing":"Yes, if you need Brotli compression on PyPy or other non-CPython implementations, or if you prefer CFFI-based bindings over C extensions. On CPython, the native Brotli package is typically preferred for performance, but this package is a solid alternative with active maintenance, no known vulnerabilities, and permissive licensing. Install friction is moderate but manageable with pre-built wheels for common platforms."},"id":"brotlicffi","links":{"html":"https://skillfed.io/packages/brotlicffi","md":"https://skillfed.io/packages/brotlicffi.md","pypi":"https://pypi.org/project/brotlicffi/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-05","license_spdx":null,"license_treatment":"permissive","name":"brotlicffi","python_support":"supports_current","summary":"Python CFFI bindings to the Brotli library"},"popularity":{"monthly_downloads":4252364,"position":2350,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.2.0.1"}
