https://github.com/leejeonghun/import7z
Import Python modules from 7z archives
https://github.com/leejeonghun/import7z
7z-archives python python-extension zipimport
Last synced: 4 months ago
JSON representation
Import Python modules from 7z archives
- Host: GitHub
- URL: https://github.com/leejeonghun/import7z
- Owner: leejeonghun
- License: other
- Created: 2021-01-11T14:32:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T14:52:50.000Z (over 4 years ago)
- Last Synced: 2025-01-27T14:51:11.302Z (5 months ago)
- Topics: 7z-archives, python, python-extension, zipimport
- Language: C
- Homepage:
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/Python-2.0)
[](https://travis-ci.com/leejeonghun/import7z)
[](https://codecov.io/gh/leejeonghun/import7z)
[](https://badge.fury.io/py/import7z)# import7z
This module is a modified version of zipimport to import Python modules and packages from 7z-format archives instead ZIP-format.
## Usage
```python
import import7zsys.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.