Decompressing gzip over FTP

SeanMon smono927 at
Sat Aug 22 03:15:35 CEST 2009

Is there a way to decompress a large (2GB) gzipped file being
retrieved over FTP on the fly?

I'm using ftplib.FTP to open a connection to a remote server, and I
have had no success connecting retrbinary to gzip without using an
intermediate file.

Is there any way to get a file-like object describing the remote file,
or a way to utilize gzip's decompression without providing it a file-
like object?


More information about the Python-list mailing list