py7zr

Pure Python 7-zip library for reading and writing 7z archives

brewmacoslinux
Try with needOr install directly
Source

About

7-zip in Python

Commands

py7zr

Examples

Extract a 7z archive$ py7zr x archive.7z
Create a 7z archive from files$ py7zr c archive.7z file1.txt file2.txt
List contents of a 7z archive$ py7zr l archive.7z