Registry / serialization / tzst
library1.3.3pypypi✓ verified 84d ago

A Python library for creating and extracting TAR archives with Zstandard (zstd) compression. It provides a high-level API similar to Python's built-in tarfile but with superior compression ratios and performance. Current version 1.3.3, requires Python >=3.12.

pip install tzst
INSTALL
IMPORT
SIG · TZST
T
tzst
serializationpythonv1.3.3
Install
1.9s avg
Import
—
Disk
31MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.9–3.13
musl
3.9–3.13
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
musl
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✕ build_error
py 3.12
✓ —
✓ 1.9s
py 3.13
✓ —
✓ 1.8s
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)
Debug
Known issues
breakingtzst requires Python >=3.12. Older Python versions will raise ImportError.
fix
Upgrade Python to 3.12 or later.
affects: >=1.0.0
gotchaThe open() function has a different signature from zstandard or tarfile. Do not use zstandard's open() as it produces raw zstd streams, not tzst archives.
fix
Always use from tzst import open.
affects: all
Upgrade
Version history
1.3.3latest on PyPI · released Apr 11, 2026
Audit
Dependencies
zstandardrequiredPython bindings to Zstandard compression library.
Agent activity
48 hits · last 30 days
node
44
OpenAI (training)
1
Resources
tzst — pip install tzst · libregistry