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.

1 Like

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