This module is a modified version of zipimport to import Python modules and packages from 7z-format archives instead ZIP-format.
import import7z
sys.path.insert(0, 'example.7z')
sys.path_hooks.insert(0, import7z.importer7z)
import some_module_in_7z
It's Python Software Foundation License cause it used zipimport.c from CPython 3.6. LZMA SDK is public domain.