link to zlib
quote from jiffyclubs answer here
The issue with the gzip module is not that it can't decompress the
partial file, the error occurs only at the end when it tries to verify
the checksum of the decompressed content. (The original checksum is
stored at the end of the compressed file so the verification will
never, ever work with a partial file.)
The key is to trick gzip into skipping the verification. The answer by
caesar0301 does this by modifying the gzip source code, but it's not
necessary to go that far, simple monkey patching will do. I wrote this
context manager to temporarily replace gzip.GzipFile._read_eof while I
decompress the partial file:
This looks to be exactly what you need....
Go to that link and read the entire respose.
Found by searching google for a stackexchange link to "python gzip crc check failed"
first result