zlib.inflate

zlib

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

Decompress raw deflate data

Returns the decompressed data and the number of compressed bytes consumed from the input. max_size caps the output buffer to guard against decompression bombs (default 64 MB).