Integrate zstd compression in tarfile module

Pythons tarfile module currently supports gzip, bz2 and lzma. Ref. zstd is a fast lossless compression algorithm by facebook, and it is getting more popular, It would be awesome if tarfile module supports zstd.

3 Likes

The tarfile module supports arbitrary compressions by using the stream mode. You only need to use a third-party library which provides zstd support.

From Issue 37095: [Feature Request]: Add zstd support in tarfile - Python tracker

@animalize Your Github account gives a 404 now. Would you still have the code? And what license is it under; the same as cpython? See also my reply on Github. Thanks!

You can see the changes on the Wayback Machine (be patient, it takes a while to load):