pyunpack is a Python module to unpack archive files.
Home: https://github.com/ponty/pyunpack
Documentation: http://ponty.github.com/pyunpack
Basic usage
>>> from pyunpack import Archive
>>> Archive('a.zip').extractall('.')
or on console:
python -m pyunpack.cli a.zip .
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
Installation
General
- install setuptools
- install unpackers for patool (optional)
- install patool (optional, easy_install does not work)
- install the program:
# as root
easy_install pyunpack
Ubuntu
sudo apt-get install python-setuptools
sudo easy_install pyunpack
#optional
sudo easy_install http://sourceforge.net/projects/patool/files/0.13/patool-0.13.tar.gz/download
sudo apt-get install unzip unrar p7zip-full
Uninstall
first install pip:
# as root
pip uninstall pyunpack
Features:
- backends:
- patool: optional, can handle a lot of formats using different programs
- zipfile: included in Python
- command line interface
Requirements:
- Python
Limitations:
- Python 3 is not supported
- Tested only on Linux
Comments not found