targzstream (pypi): An extension to tarfile to allow adding files to a tarfile, without the need to write to disk first.  It also allows data to be compressed as it is added to the tarfile, for large files or data that might be generated on the fly.  Note that the output file object must support "seek()", hence the output must be an uncompressed tar file.  Currently, only GZip is supported for compression.
Keywords: tarfile|gzip|streaming