Data Compression and Archiving¶
The modules described in this chapter support data compression with the zlib,
gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-format
archives. See also Archiving operations provided by the shutil
module.
zlib
— Compression compatible with gzipgzip
— Support for gzip filesbz2
— Support for bzip2 compressionlzma
— Compression using the LZMA algorithmzipfile
— Work with ZIP archivestarfile
— Read and write tar archive filesopen()
is_tarfile()
TarError
ReadError
CompressionError
StreamError
ExtractError
HeaderError
FilterError
AbsolutePathError
OutsideDestinationError
SpecialFileError
AbsoluteLinkError
LinkOutsideDestinationError
ENCODING
REGTYPE
AREGTYPE
LNKTYPE
SYMTYPE
CHRTYPE
BLKTYPE
DIRTYPE
FIFOTYPE
CONTTYPE
GNUTYPE_LONGNAME
GNUTYPE_LONGLINK
GNUTYPE_SPARSE
USTAR_FORMAT
GNU_FORMAT
PAX_FORMAT
DEFAULT_FORMAT
- TarFile Objects
- TarInfo Objects
- Extraction filters
- Command-Line Interface
- Przykłady
- Supported tar formats
- Unicode issues