I\'m using the following code to extract a tar file:
import tarfile
tar = tarfile.open(\"sample.tar.gz\")
tar.extractall()
tar.close()
However,
You could use extract instead of extractall
- you would be able to print the member names as they are being extracted. To get a list of members, you could use getmembers.
A textual progressbar library can be found here:
Tkinter snippet: