Top "Tarfile" questions

either a tar archive file or a Python module used to handle tar archive files

How to create full compressed tar file using Python?

How can I create a .tar.gz file with compression in Python?

python compression zip tarfile
Size of an open file object

Is there a way to find the size of a file object that is currently open? Specifically, I am working …

python file file-io filesize tarfile
How to construct a TarFile object in memory from byte buffer in Python 3?

Is it possible to create a TarFile object in memory using a buffer containing the tar data without having to …

python file python-3.x tar tarfile
Safely extract zip or tar using Python

I'm trying to extract user-submitted zip and tar files to a directory. The documentation for zipfile's extractall method (similarly with …

python zip tar zipfile tarfile
How to unpack xz file with python which contains only data but no filename?

I have a file, which I can decompress under linux using the following command: unxz < file.xz > file.…

python compression tarfile xz
How to determine if data is valid tar file without a file?

My upload form expects a tar file and I want to check whether the uploaded data is valid. The tarfile …

python tar tarfile
In python, if extract a tar.gz file, how to get or set the name of the result file

My question is like: when use: import tarfile tar = tarfile.open("sample.tar.gz") tar.extractall() tar.close() if the …

python tarfile compression
Checking tarfile integrity in Python

I'm working on converting my backup script from shell to Python. One of the features of my old script was …

python error-handling integrity tarfile
Tarfile in Python: Can I untar more efficiently by extracting only some of the data?

I am ordering a huge pile landsat scenes from the USGS, which come as tar.gz archives. I am writing …

python performance tarfile