{"categories":[{"label":"Compression","url":"https://skillfed.io/packages/category/system-archiving-compression"}],"enrichment":{"capability":"Decompresses DEFLATE and DEFLATE64 streams in pure Python, designed to handle streaming data where the compressed content length is unknown or followed by additional data.","skillfed_tags":["streaming-decompression","deflate-codec","zip-parsing"],"use_cases":["Decompress HTTP responses with Content-Encoding: deflate without loading the entire response body into memory.","Parse ZIP files where DEFLATE-compressed entries are followed by additional metadata or other entries.","Stream large compressed files from disk or network in fixed-size chunks to keep memory usage bounded.","Handle DEFLATE64 streams in ZIP64 archives or other formats that use the extended compression method.","Detect the end of a DEFLATE stream and identify trailing bytes that are not part of the compressed data."],"what_it_does":"stream-inflate is a pure-Python (Cython-compiled) library for decompressing DEFLATE and DEFLATE64 streams incrementally. It solves the problem of decompressing data when you don't know the total size upfront or when compressed data is followed by other bytes\u2014common in HTTP responses and ZIP file parsing. Instead of loading the entire stream into memory, you feed it chunks and iterate over uncompressed output, making it suitable for large or streaming sources.\n\nThe library exposes two main functions: `stream_inflate()` for standard DEFLATE and `stream_inflate64()` for DEFLATE64. Both return a tuple of callables: one to feed compressed chunks, one to check if decompression is complete, and one to query unconsumed bytes. This design lets you handle edge cases like ZIP files where data follows the compressed stream without buffering everything.","worth_installing":"Yes, if you need streaming DEFLATE decompression with unknown or bounded memory. The library is actively maintained, permissively licensed, has no known vulnerabilities, and solves a real problem that standard library tools don't address cleanly. Medium install friction is acceptable given broad wheel coverage. Not worth installing if you only decompress small, pre-sized payloads or can use existing tools directly."},"id":"stream-inflate","links":{"html":"https://skillfed.io/packages/stream-inflate","md":"https://skillfed.io/packages/stream-inflate.md","pypi":"https://pypi.org/project/stream-inflate/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-04","license_spdx":null,"license_treatment":"permissive","name":"stream-inflate","python_support":"supports_current","summary":"Uncompress DEFLATE streams in pure Python (albeit compiled with Cython)"},"popularity":{"monthly_downloads":879240,"position":4824,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.0.43"}
