All formats

7z libraries for Python

Python’s standard library has zipfile, tarfile and the lzma module (raw LZMA and .xz streams) but no 7z archive support. Two libraries fill the gap:

Pick py7zr for most 7z work, especially encryption; libarchive-c when you process many archive formats with one code path or need BCJ2 archives.