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()
More Related Contents:
- Base64 decoding in Python 3.2 type error
- Why does append() always return None in Python? [duplicate]
- Convert all strings in a list to int
- Convert JSON string to dict using Python
- Limit number of threads in numpy
- round() doesn’t seem to be rounding properly
- How to use youtube-dl from a python program?
- Reduce left and right margins in matplotlib plot
- Difference between the built-in pow() and math.pow() for floats, in Python?
- TypeError: ‘range’ object does not support item assignment
- How to import a Python module from a sibling folder?
- PYTHONPATH on Linux [closed]
- SyntaxError: “can’t assign to function call”
- Get year, month or day from numpy datetime64
- django – convert a list back to a queryset [duplicate]
- How do I separate my models out in django?
- How would you do the equivalent of preprocessor directives in Python?
- Create random list of integers in Python
- How to group DataFrame by a period of time?
- Python: Random selection per group
- Keep selected column as DataFrame instead of Series
- hasattr() vs try-except block to deal with non-existent attributes
- Pandas reindex dates in Groupby
- Numpy Vector (N,1) dimension -> (N,) dimension conversion
- Find index of all rows with null values in a particular column in pandas dataframe
- Python json.loads changes the order of the object
- Numpy shuffle multidimensional array by row only, keep column order unchanged
- How do I re-map python dict keys
- When is plt.show() required to show a plot and when is it not?
- how to specify the datetime format in read_csv