/import7z

Import Python modules from 7z archives

Primary LanguageCOtherNOASSERTION

PyPI - License Build Status codecov PyPI version

import7z

This module is a modified version of zipimport to import Python modules and packages from 7z-format archives instead ZIP-format.

Usage

import import7z

sys.path.insert(0, 'example.7z')
sys.path_hooks.insert(0, import7z.importer7z)

import some_module_in_7z

License

It's Python Software Foundation License cause it used zipimport.c from CPython 3.6. LZMA SDK is public domain.