tarfile

tarfile — Read and write tar archive files

New in version 2.3.

Source code: Lib/tarfile.py

The tarfile module makes it possible to read and write tar archives, including those using gzip or bz2 compression. Use the zipfile module to read or write .zip files, or the higher-level functions in shutil登录查看完整内容