gzip.open(filename, mode='rb', compresslevel=9, encoding=None, errors=None, newline=None) Open a gzip-compressed file in binary
TarFile.close() Close the TarFile. In write mode, two finishing zero blocks are appended to the archive.
peek(size=-1) Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF
TarFile.addfile(tarinfo, fileobj=None) Add the TarInfo object tarinfo to the archive. If fileobj
ZipFile.namelist() Return a list of archive members by name.
TarInfo.ischr() Return
ZipInfo.extract_version PKZIP version needed to extract archive.
ZipInfo.extra Expansion field data. The
gzip.compress(data, compresslevel=9) Compress the data, returning a
compress(data) Provide data to the compressor object. Returns a chunk of compressed data if possible, or an empty byte string
Page 4 of 14