unpack archive files
- Links:
documentation: http://ponty.github.com/pyunpack
- Features:
unpack archive files without password
very simple interface
command line interface and library
supported python versions: 2.5, 2.6, 2.7
- back-ends:
zipfile: included in Python
patool: It relies on helper applications to handle those archive formats (for example bzip2 for BZIP2 archives). Supported formats: 7z (.7z), ACE (.ace), ALZIP (.alz), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms), GZIP (.gz), LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), TAR (.tar), XZ (.xz), ZIP (.zip, .jar) and ZOO (.zoo)
- Known problems:
Python 3 is not supported
tested only on linux
Background
Patool is very good at unpacking a lot of archive formats, but it can not be used as a python library. pyunpack is a workaround: patool is called using its command line interface. If Patool is not installed then only zip format can be unpacked using the internal python zipfile library. Patool should be converted into a library in the future.
Basic usage
>>> from pyunpack import Archive
>>> Archive('a.zip').extractall('/path/to')
or on console:
python -m pyunpack.cli a.zip /path/to
Similar projects
zipfile: zip only, included in python
patool: many formats, command line only
python-archive: zip and tar only
rarfile: rar only
pyUnRAR2: rar only
pylzma: LZMA only
easy-extract: many formats, no simple interface for unpacking
python-archive: zip and tar only
nested.tar.archives.extractor: tar only
Installation
General
Ubuntu
sudo apt-get install python-pip sudo pip install pyunpack #optional sudo apt-get install unzip unrar p7zip-full
Uninstall
# as root pip uninstall pyunpack
Metadata
Release files for pyunpack 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyunpack-0.0.2.tar.gz | 5.4 kB | Details |
Release files / pyunpack-0.0.2.tar.gz
| Download URL | pyunpack-0.0.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1020a12d813dd5a5be48aaad7c34fd9e03ba86acfc2c91860a09a062802a5d45
|
|
BLAKE2b-256 checksum How to use checksums |
b1f661282c5171efc480ddf0e9f58b1c5aadbece4a8aecfc78af3c9711ecbe93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |