Skip to main content

A mostly universal archive extractor using z7zip, libarchve, other libraries and the Python standard library for reliable archive extraction.

Project description

  • license: Apache-2.0

  • copyright: copyright (c) nexB. Inc. and others

  • homepage_url: https://github.com/nexB/extractode

  • keywords: archive, extraction, libarchive, 7zip, scancode-toolkit

ExtractCode is a universal archive extractor. It uses behind the scenes the Python standard library, a custom ctypes binding to libarchive and the 7zip command line to extract a large number of common and less common archives and compressed files. It tries to extract things in the same way on all OSes, including auto-renaming files that would not have valid names on certain filesystems or when there are multiple copies of the same path in a given archive. The extraction is driven from a “voting” system that considers the file extension(s) and name, the file type and mime type (using a ctypes binding to libmagic) to select the most appropriate extractor or uncompressor function. It can handle multi-level archives such as tar.gz.

Visit https://aboutcode.org and https://github.com/nexB/ for support and download.

To set up the development environment:

source configure

To run unit tests:

pytest -vvs -n 2

To clean up development environment:

./configure --clean

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extractcode-21.1.21.tar.gz (11.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

extractcode-21.1.21-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

File details

Details for the file extractcode-21.1.21.tar.gz.

File metadata

  • Download URL: extractcode-21.1.21.tar.gz
  • Upload date:
  • Size: 11.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.10

File hashes

Hashes for extractcode-21.1.21.tar.gz
Algorithm Hash digest
SHA256 531c4cce46ad91d9ac100e12c5afa5b8e4f2867f3360a25708f2f6998011d0f8
MD5 40fa07b0004a76c6ef8b177326d0ca66
BLAKE2b-256 21a86e390166a4a5a931906870e8e5effcf17c641d4c7f73823a8fd20af5e771

See more details on using hashes here.

File details

Details for the file extractcode-21.1.21-py3-none-any.whl.

File metadata

  • Download URL: extractcode-21.1.21-py3-none-any.whl
  • Upload date:
  • Size: 46.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.10

File hashes

Hashes for extractcode-21.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 7b79c57f5976e2f73a85edb999dce6df5f925ebae12be13e5932f8580480cfb2
MD5 1146c48215171b8867940c0a43d4c508
BLAKE2b-256 8217e3b49b9856a37fb8ff695fd8c9ebb366f42bf1f837bdb308d0658f5a68d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page