tarfile — Tar Archive Access — PyMOTW 3

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.