Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Wrapper around tarfile with support for more compression formats.

Project description


Wrapper around tarfile to add support for more compression formats.


First, install the library with the tarfile compression formats you wish to support. The example below shows an install for zstandard tarfile support.

pip install xtarfile[zstd]

You can now use the xtarfile module in the same way as the standard library tarfile module:

import xtarfile as tarfile

with'some-archive', 'w:zstd') as archive:

with'some-archive', 'r:zstd') as archive:

Alternatively, detecting the correct compression module based on the file extensions is also supported:

import xtarfile as tarfile

with'some-archive.tar.zstd', 'w') as archive:

with'some-archive.tar.zstd', 'r') as archive:


Install the project’s dependencies with pip install .[zstd].

Run the tests via python3 test.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xtarfile, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size xtarfile-0.0.4.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page