The tarfile module provides read and write access to UNIX tar archives, including compressed files. In addition to the POSIX standards, several GNU tar extensions are supported. UNIX special file types such as hard and soft links, and device nodes are also handled.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.