1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Metadata-Version: 2.2
Name: zombie-imp
Version: 0.0.3
Summary: A copy of the `imp` module that was removed in Python 3.12
Maintainer-email: Petr Viktorin <encukou@gmail.com>
Project-URL: Homepage, https://github.com/encukou/zombie-imp
Project-URL: Bug Tracker, https://github.com/encukou/zombie-imp/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Python Software Foundation License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
# zombie-imp
~~A particularly mischievous act of necromancy. That is,~~
A copy of the `imp` module that was removed in Python 3.12.
Don't use this, it'll probably trick and bite you.
# Usage
Can be summoned by `import zombie_imp`.
On Python versions where `imp` was banished, reanimate it using `import imp`.
It promises (with a sneer) to be the same as before.
Some functionality that was severed from `pkgutil` is interred
in `zombie_imp.pkgutil`, ready for reattachment:
- `ImpImporter`
- `ImpLoader`
# Development
You want to help it? Think you'll be rewarded?
Great! It loves gullible brains.
Seriously, **run!**
Find a project that needs this and port *that* to `importlib`.
## License
The code was snatched from CPython, and is available under CPython's license
(SPDX: `Python-2.0.1`).
|