Helps import Python extensions from memory, e.g. extensions from Zip files or Web.
Project description
memimport for Python 3
memimport
is a part of py2exe
, which helps import Python extensions from
memory, e.g. extensions from Zip files or Web.
This repo via CI to build it as Python extensions, beacause the original has been built into the py2exe runstubs, only run with script, no REPL.
Development of memimport
is hosted here: https://github.com/SeaHOH/memimport.
Development of py2exe
is hosted here: https://github.com/py2exe/py2exe.
Compatibility
Windows, CPython >= 3.6
Usage
import zipextimporter
import sys
sys.path.insert(0, 'path/to/libs.zip')
then
zipextimporter.monkey_patch() # recommend, only monkey patch `zipimport.zipimporter`
or
zipextimporter.install() # also, install to `sys.path_hooks` is still available
then
import ext_mod_in_zip # now, support __init__.pyd in packages
ext_mod_in_zip # <module 'ext_mod_in_zip' from 'path\\to\\libs.zip\\ext_mod_in_zip\\__init__.pyd'>
ext_mod_in_zip.__file__ # 'path\\to\\libs.zip\\ext_mod_in_zip\\__init__.pyd'>
ext_mod_in_zip.__loader__ # <ZipExtensionImporter object 'path\to\libs.zip\'>
import py_mod_in_zip
py_mod_in_zip # <module 'py_mod_in_zip' from 'path\\to\\libs.zip\\py_mod_in_zip\\__init__.py'>
py_mod_in_zip.__file__ # 'path\\to\\libs.zip\\py_mod_in_zip\\__init__.py'>
py_mod_in_zip.__loader__ # <zipimporter object 'path\to\libs.zip\'>
More usage see source or use help function.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
memimport-0.13.0.0.post2.tar.gz
(31.1 kB
view hashes)
Built Distributions
Close
Hashes for memimport-0.13.0.0.post2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dbe10cd8fde57f93693f28c3a8a0f460d4b2e9cb3c5778880080217707de23 |
|
MD5 | 74816419c659199c4cfa5b130ce94c53 |
|
BLAKE2b-256 | 5141171a986958e6a51aef04ba43462bafacbc3657caf6af1b661c501e666f8e |
Close
Hashes for memimport-0.13.0.0.post2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a11e35ce19942bb9e2787b443f82216adc9ad6a49de2b45ec6cde06a7676ad |
|
MD5 | 5d6fdfcb931910466eadf8f06da1b47e |
|
BLAKE2b-256 | daeaf5f10d2bdd5ae0b99b6995b7cb92b5dd142e40b7d0d0cfee081928999f05 |
Close
Hashes for memimport-0.13.0.0.post2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79613a3b168ba2d2b272421598c8090f260dcfbd43d7ca74b4b83a14434806f9 |
|
MD5 | 05804c97e5560ea39a7c0f3373ba520b |
|
BLAKE2b-256 | e9ea0cedb70bdae1898950843993bc7fd34cff59b651e3b23b6941c84495cd35 |
Close
Hashes for memimport-0.13.0.0.post2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1e4ad43730440ad54f38d637628d868092fa1b6840d4aba0d852892dd6ffaa |
|
MD5 | 73a6be308ecd3ea2125d741e0b5e2fd4 |
|
BLAKE2b-256 | 671992e8b79d18d166bef826bc8f1a7390feee4d2153958565fff56dfe76b17f |
Close
Hashes for memimport-0.13.0.0.post2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430f3ab65ae95d7e83f9275a345ac03c82c488e10a77560e4ab057774d4d7946 |
|
MD5 | f885c6157bb0cfa4402e172d1a9f2131 |
|
BLAKE2b-256 | 5bab1c1386bc0022161c41b0bedc66b075259e390afafd124ba88fc5ee5c5818 |
Close
Hashes for memimport-0.13.0.0.post2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 595f4f86bfd40e34d90e63ebda49f82ceb491e2f434942517acf4c2bc8a508cc |
|
MD5 | 00c4214484400043517ab4801657ca00 |
|
BLAKE2b-256 | cc3c0a7ff760890f2aa735ea9f35cafd27f9343dd3fa7ab915f899fe5287e838 |
Close
Hashes for memimport-0.13.0.0.post2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c13670e67cffe46eea67094340669d2854fb2e7002e528d35f1f7b86b10a0cb |
|
MD5 | fabf734ce1a4004e2d497d97d7d2e4ff |
|
BLAKE2b-256 | a83ba4ee22a24347b7c6cf535847efbf9ba4b94c300332ad9065b914f2d8850e |
Close
Hashes for memimport-0.13.0.0.post2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f79d618d2cc0767e41edd61acd191410faf47193bb1e8716a6c7e2938b8c9dbb |
|
MD5 | 0ef34ee570dc78e63ea46f0f2b7470f7 |
|
BLAKE2b-256 | 0ab2d49c581c183eef6751cf10584742ba6db3a7194541783d97fb866f92d47a |
Close
Hashes for memimport-0.13.0.0.post2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3e3514562973ca742b803641377d5f8875d419584c50e6e02e89c0df4531580 |
|
MD5 | 20b74d2916b0b30342c77a96a876b0f1 |
|
BLAKE2b-256 | 2d562d5fd91af1605fd8c804ef465b7939079ab51b1e656d5a1995c4e6d20532 |
Close
Hashes for memimport-0.13.0.0.post2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3db46f8c6ca31e8b3743c4066c81a908423b3d3158fec5f4d8580e42af2d2b04 |
|
MD5 | da8bb4df47ee7c7fb2bd916269bf89ce |
|
BLAKE2b-256 | 969990790bdefafc2f987add300d39b4d2fb6c153d1c8a938a3d5b3df751c7d6 |
Close
Hashes for memimport-0.13.0.0.post2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307494d24e2d5d97181777566921e82ec4821ec3f7c0d0a6070740eb68f65635 |
|
MD5 | 375f56fafa10b6fd18f2da2d3f921443 |
|
BLAKE2b-256 | ce0252e5b80e5cc3fab49e8d011554fdfe4812a9d6bd00a5179e51b553e682b6 |
Close
Hashes for memimport-0.13.0.0.post2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 615760d29f730702c8566f96f60db8d3fd47416545c2b6da5e13717b0094d382 |
|
MD5 | ccf5436fd03555d70a804d909a88ab92 |
|
BLAKE2b-256 | 78d0eab87bbb7245fe38012c9ccede050445f907900573ac644bc1b25e4832c3 |