Registry / devops / extractcode

extractcode

JSON →
library31.0.0pypypi✓ verified 34d ago

A mostly universal archive extractor using 7zip, libarchive and the Python standard library for reliable archive extraction. Current version 31.0.0, requires Python >=3.6. Released as part of the scancode-toolkit ecosystem.

devopsdata
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

extract_archive is in the api submodule, not top-level.

from extractcode.api import extract_archive

Basic usage: extract an archive file to a directory.

from extractcode.api import extract_archive # Extract an archive to a destination directory extract_archive('sample.zip', dest_dir='/tmp/extracted', verbose=True)
extractcode --version
Debug
Known footguns
breakingIn v31.0.0, patch extraction is no longer installed by default. Use the [patch] extra to include patch.py support.
gotchaThe main extraction function `extract_archive` is located in the `extractcode.api` module, not in the top-level `extractcode` package. Importing from the top level will raise ImportError.
deprecatedOlder versions used `extractcode.extract()` or similar functions that are now removed. Check the API for the current interface.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources