I\'m using Python\'s gzip module to gzip content for a single file, using code similar to the example in the docs:
import gzip content = \"Lots of content he
You must use gzip.GzipFile and supply a fileobj. If you do that, you can specify an arbitrary filename for the header of the gz file.
fileobj