If you can use python 3, there is a useful library, py7zr, which supports 7zip archive compression, decompression, encryption and decryption.
import py7zr
with py7zr.SevenZipFile('sample.7z', mode="r") as z:
z.extractall()
If you can use python 3, there is a useful library, py7zr, which supports 7zip archive compression, decompression, encryption and decryption.
import py7zr
with py7zr.SevenZipFile('sample.7z', mode="r") as z:
z.extractall()