Skip to content

ascoderu/xtarfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xtarfile

image

image

Overview

Wrapper around tarfile to add support for more compression formats.

Usage

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

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

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

Development

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

Run the tests via python3 setup.py test.