{"library":"mgzip","title":"mgzip","description":"A multi-threading implementation of Python's gzip module, providing drop-in replacements for gzip.open, gzip.compress, and gzip.decompress with parallel compression/decompression. Current version 0.2.5 supports Python 3.8-3.14. Active development with regular releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mgzip"],"cli":null},"imports":["from mgzip import open","from mgzip import compress","from mgzip import decompress"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mgzip import open\n\n# Multithreaded gzip compression\nwith open('example.txt.gz', 'wt', compresslevel=5, thread=4) as f:\n    f.write('Hello, world!')\n\n# Multithreaded decompression\nwith open('example.txt.gz', 'rt', thread=4) as f:\n    print(f.read())","lang":"python","description":"Basic usage of mgzip.open for writing and reading gzip files with multiple threads.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}