Skip to main content

unpack archive files

Links:
Features:
  • unpack archive files without password

  • very simple interface

  • command line interface and library

  • backends:
    • 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

Installation

General

  • install setuptools

  • install unpackers for patool (optional)

  • patool is installed by setup script

  • install the program:

    # as root
    easy_install pyunpack

Ubuntu

sudo apt-get install python-setuptools
sudo easy_install pyunpack
#optional
sudo apt-get install unzip unrar p7zip-full

Uninstall

first install pip:

# as root
pip uninstall pyunpack

Metadata

Release files for pyunpack 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyunpack 0.0.1
File Size Uploaded
pyunpack-0.0.1.tar.gz 30.1 kB Details

Release files / pyunpack-0.0.1.tar.gz

Download URL pyunpack-0.0.1.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7f30b5b43158109de0713dac4787950dbe4eda9122010140273a3f454e7d47b4
BLAKE2b-256 checksum
How to use checksums
0b1ff00f4b986a823376397ad95ee67127c49c5714b12f9607b39196d06eb0ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

0.0.3

1 release file

0.0.2

1 release file

This release

0.0.1 This release

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page