Install & Compatibility
Where this runs
tested against v1.3.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✕ build_error
py 3.9
✕ build_error
✕ build_error
31MB installed
● package 31MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
TzstArchive
✓ from tzst import TzstArchive
✗ from tzst import open
create_archive
✓ from tzst import create_archive
extract_archive
✓ from tzst import extract_archive
Basic usage: open a tzst archive with open() context manager, add files, extract all.
from tzst import open
import os
# Create a tzst archive
with open('example.tar.zst', 'w') as tf:
tf.add('file1.txt')
tf.add('directory/')
# Extract a tzst archive
with open('example.tar.zst', 'r') as tf:
tf.extractall(path='./extracted')
# Compress existing tar file
import tarfile
with tarfile.open('example.tar', 'w') as tar:
tar.add('file1.txt')
# then compress with zstd? Actually tzst handles it directly
# For reading stream
with open('example.tar.zst', 'r') as tf:
for member in tf:
print(member.name)
Upgrade
Version history
1.3.3latest on PyPI · released Apr 11, 2026
Audit
Dependencies
zstandardrequiredPython bindings to Zstandard compression library.