{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/22"}],"enrichment":{"capability":"mgzip provides a drop-in replacement for Python's standard gzip module that uses multi-threading to compress and decompress files in parallel, compatible with standard GZIP format.","skillfed_tags":["compression","parallelization","gzip-compatible"],"use_cases":["Compress large log files or data dumps quickly on multi-core servers before archival or transfer.","Decompress GZIP archives in parallel to speed up data pipeline initialization on systems with spare CPU capacity.","Replace standard gzip calls in existing code with minimal changes to gain multi-threaded performance.","Process block-indexed GZIP files created by mgzip itself for faster random-access decompression.","Reduce compression time in batch data processing workflows where IO is not the bottleneck."],"what_it_does":"mgzip is a multi-threaded implementation of Python's gzip module that parallelizes compression and decompression across CPU cores. It uses a block-indexed GZIP format (via the FEXTRA field defined in GZIP spec 4.3) to enable concurrent processing while remaining fully compatible with standard GZIP readers. The module replaces gzip's GzipFile class and open/compress/decompress functions with threaded equivalents.\n\nThe package is designed for scenarios where large files need fast compression or decompression on multi-core systems. It trades some compatibility (seek/tell not yet supported) for speed gains. The implementation is in Beta status and actively maintained, though the author notes that real-world performance depends on IO and Python interpreter limitations rather than pure CPU scaling.","worth_installing":"Yes, if you need faster GZIP compression/decompression on multi-core systems and can work around the missing seek/tell methods. Low install friction, no dependencies, MIT-licensed, and actively maintained. Not suitable if you rely on seek/tell or need production-grade stability\u2014the package is still Beta."},"id":"mgzip","links":{"html":"https://skillfed.io/packages/mgzip","md":"https://skillfed.io/packages/mgzip.md","pypi":"https://pypi.org/project/mgzip/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-28","license_spdx":null,"license_treatment":"permissive","name":"mgzip","python_support":"supports_current","summary":"A multi-threading implementation of Python gzip module"},"popularity":{"monthly_downloads":74775,"position":14795,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.5"}
