py7zr
« Back to VersTracker
Description:
7-zip in Python
Type: Formula  |  Latest Version: 1.0.0@0  |  Tracked Since: Dec 21, 2025
Links: Homepage  |  GitHub  |  Docs  |  formulae.brew.sh
Stars: 526  |  Forks: 87  |  Language: Python  |  Category: Developer tools
Tags: archive compression 7z python lzma
Install: brew install py7zr
About:
py7zr is a Python library and command-line tool for creating, extracting, and listing 7-zip archives. It provides full support for the 7z format with high compression ratios using algorithms like LZMA and LZMA2. The library aims to be a pure Python implementation, offering a lightweight and portable alternative to the standard p7zip utility.
Key Features:
  • Pure Python implementation with no external 7z binary dependency
  • Support for multiple compression algorithms including LZMA, LZMA2, BZip2, and Deflate
  • Full archive features: solid compression, multi-volume archives, and strong encryption (AES-256)
  • Standard library-like API for easy integration into Python projects
Use Cases:
  • Automating backup scripts that create compressed archives
  • Building Python applications that need to handle 7z files without system dependencies
  • Processing large datasets by compressing them into efficient 7z archives
Alternatives:
  • p7zip – A command-line C++ utility that py7zr can replace to avoid system dependencies in Python environments.
  • python-libarchive-c – A Python binding for libarchive which supports many formats, while py7zr focuses specifically on the 7z format.
Version History
Detected Version Rev Change Commit
Dec 21, 2025 5:22am 1.0.0 0 VERSION_BUMP b716dea9