Registry / devops / extractcode-libarchive

extractcode-libarchive

JSON →
library3.5.1.210531pypypiunverified

A ScanCode path provider plugin that provides a prebuilt native libarchive binary for archive extraction. Version 3.5.1.210531 is current. Release cadence is irregular, tied to ScanCode plugin updates.

pip install extractcode-libarchive
INSTALL
IMPORT
SIG · EXTRACTCODE-LIBARC
E
extractcode-libarchive
devopspythonv3.5.1.210531
harness data pending
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.

get_libarchive
from extractcode_libarchive import get_libarchive
from extractcode_libarchive import get_libarchive

Retrieve the path to the prebuilt libarchive binary.

from extractcode_libarchive import get_libarchive # Get path to the embedded libarchive binary libarchive_path = get_libarchive() print(libarchive_path) # Output: '/path/to/libarchive/binary'
Debug
Known issues
gotchaThis package only provides a prebuilt binary. It does not include the libarchive Python bindings. You must separately install e.g., libarchive-c or pylibarchive to use the binary programmatically.
fix
Install a library like `libarchive-c` (`pip install libarchive-c`) and use `ctypes` or the library's API to load the binary from the path returned by `get_libarchive()`.
affects: all
gotchaThe import path uses underscore (`extractcode_libarchive`) not dot (`extractcode.libarchive`). A common mistake is to assume it's a subpackage.
fix
Use `from extractcode_libarchive import ...`
affects: all
gotchaThis plugin is packaged for use with ScanCode toolkit. Standalone usage may require additional setup for plugin discovery.
fix
Ensure `plugincode` is installed and the environment includes the ScanCode plugin registry.
affects: all
Upgrade
Version history
3.5.1.210531latest on PyPI · released May 31, 2021
Audit
Dependencies
plugincoderequiredRequired for plugin discovery within ScanCode
Agent activity
4 hits · last 30 days
node
4
Resources
extractcode-libarchive — pip install extractcode-libarchive · libregistry