I\'m using the following code to extract a tar file:
import tarfile tar = tarfile.open(\"sample.tar.gz\") tar.extractall() tar.close()
However,
There's a cool solution here that overrides the tarfile module as a drop-in replacement and lets you specify a callback to update.
https://github.com/thomaspurchas/tarfile-Progress-Reporter/
updated based on comment