- .rar
- .zip
- .tar, '.tar.bz2', '.tar.gz', 'tar.xz', '.tgz', '.tz2'
- .7z
- ...
$ pip install easy_archive
from easy_archive import Archive
archive = Archive('archive_file_path')
archive.[namelist | list | is_encrypted | close]
archive.[extract | extractall]('destination_path')
- namelist: Returns list of filenames in archive.
- list: Returns pretty list of filenames in archive.
- is_encrypted: Specified the archive require password for extract or not.
- extract: Extract single archive level in current path or given path directory.
- extractall: Extract all archived level in current path or given path directory.
- close: Close open archive file.
For development execute following:
pip install -r requirement-dev.txt
pip install -e