Skip to main content

unpack archive files

Links:
Features:
  • unpack archive files without password

  • very simple interface

  • command line interface and library

  • supported python versions: 2.6, 2.7

  • tested only on linux

  • 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)

Background

patool is called by pyunpack using its command line interface. If Patool is not installed then only zip format can be unpacked using the internal python zipfile library.

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 pip

  • install unpackers for patool (optional)

  • install patool (optional)

  • install the program:

    # as root
    pip install pyunpack

Ubuntu

sudo apt-get install python-pip
sudo pip install pyunpack
#optional
sudo pip install http://downloads.sourceforge.net/project/patool/0.17/patool-0.17.tar.gz
sudo pip install entrypoint2 # for cli.py
sudo apt-get install unzip unrar p7zip-full

Uninstall

# as root
pip uninstall pyunpack

Metadata

Release files for pyunpack 0.0.3

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.3
File Size Uploaded
pyunpack-0.0.3.tar.gz 7.2 kB Details

Release files / pyunpack-0.0.3.tar.gz

Download URL pyunpack-0.0.3.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4f4bf80284a53e1d226435dc3260d1c2ea15587c5ff8c6496c03f1ad9c2d8a10
BLAKE2b-256 checksum
How to use checksums
1d0edfab29abcd796f84a74805b515437c227a91d0eebe8c0a78e97a070c8435
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

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

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