Install via pip:
pip install ckanext-unfold
Enable the plugin:
ckan.plugins = unfold
Set as default view:
ckan.views.default_views = unfold_view
Dependencies by archive format:
RAR, CBR:
- Install unrar command-line utility (must be in PATH)
- Alternative: unar (TheUnarchiver) or bsdtar (libarchive)
- For password-protected headers: pip install cryptography OR pycryptodome
7Z:
- pip install py7zr==0.20.6
- Auto-installs: PyCryptodome, PyZstd, PyPPMd, bcj-cffi, texttable, multivolumefile
ZIP, ZIPX, JAR:
- Built-in zipfile library (no extra dependencies)
TAR, TAR.XZ, TAR.GZ, TAR.BZ2:
- Built-in tarfile library (no extra dependencies)
RPM:
- pip install rpmfile==1.1.1
- For zstd compressed RPMs: pip install zstandard
DEB, A, AR, LIB:
Full installation with all dependencies:
pip install ckanext-unfold[dev]
Features:
- File tree representation with expandable folders
- Search within archive contents
- Sorting options (name, size, type, format, date)
- Caching for faster repeated access
- Support for remote archive URLs
- Large archive handling
Supported archive formats:
ZIP, ZIPX, JAR, RAR, CBR, 7Z, TAR, TAR.XZ, TAR.GZ, TAR.BZ2, DEB, RPM, A, AR, LIB