{"categories":[{"label":"Compression","url":"https://skillfed.io/packages/category/system-archiving-compression"}],"enrichment":{"capability":"Provides faster zlib and gzip compression and decompression by wrapping the zlib-ng library with Python bindings that serve as drop-in replacements for the standard library modules.","skillfed_tags":["compression","performance-optimization"],"use_cases":["Replace zlib in data processing pipelines where compression speed is a bottleneck and standard library performance is insufficient.","Accelerate gzip-based file I/O in applications that read or write many compressed files.","Stream large compressed files using gzip_ng_threaded to parallelize I/O and escape Python's GIL.","Implement gzip-compatible command-line compression tools with better performance than the standard gzip utility.","Reduce latency in HTTP compression workflows where zlib is the bottleneck in request/response handling."],"what_it_does":"zlib-ng wraps the zlib-ng C library to provide faster compression and decompression than Python's built-in zlib and gzip modules. It offers three modules: zlib_ng (a zlib replacement), gzip_ng (a gzip replacement), and gzip_ng_threaded (which adds multi-threaded streaming for large files). All three are designed to be nearly drop-in replacements for their standard library counterparts, with the same API and behavior\u2014the main difference is speed. The package includes a command-line tool (python -m zlib_ng.gzip_ng) that mimics the standard gzip utility.\n\nThe package is built from C extensions and requires compilation or platform-specific wheels during installation. It supports Linux, macOS, and Windows across multiple architectures. There are minor differences from the standard library: compression level 1 produces worse compression ratios than standard zlib, and gzip_ng.open returns GzipNGFile instead of GzipFile (though GzipFile is aliased for compatibility). No runtime dependencies are required once installed.","worth_installing":"Yes, if you need faster compression/decompression and can tolerate medium install friction (compiled wheels). The package is actively maintained, has no known vulnerabilities, is permissively licensed, and offers a true drop-in replacement API. Install only if your workload is actually bottlenecked on compression\u2014the standard library zlib is sufficient for most use cases."},"id":"zlib-ng","links":{"html":"https://skillfed.io/packages/zlib-ng","md":"https://skillfed.io/packages/zlib-ng.md","pypi":"https://pypi.org/project/zlib-ng/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-10","license_spdx":"PSF-2.0","license_treatment":"permissive","name":"zlib-ng","python_support":"supports_current","summary":"Drop-in replacement for zlib and gzip modules using zlib-ng"},"popularity":{"monthly_downloads":1761783,"position":3582,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
