zlib.gunzip

zlib

gunzip(data, max_size) -> decompressed, bytes_consumed, err

Decompress gzip data (RFC 1952)

Parses the gzip header, inflates the payload, and validates the CRC32 trailer. Compatible with output from the gzip command. Returns the decompressed data and total bytes consumed. max_size caps the output buffer (default 64 MB).