Skip to content

Zstd

provide.foundation.archive.zstd

TODO: Add module docstring.

Classes

ZstdCompressor

Bases: BaseCompressor

Zstandard compression implementation.

Provides ZSTD compression and decompression using the zstandard package. Does not handle bundling - use with TarArchive for .tar.zst files.

ZSTD level range: 1-22 - 1: Fastest compression, lower ratio - 3: Default balanced setting - 22: Best compression, much slower

Requires the 'zstandard' package to be installed.

Install with: pip install provide-foundation[compression]

Attributes
format_name property
format_name: str

Return the name of the compression format.

Functions