Skip to main content

A copy of the `imp` module that was removed in Python 3.12

Project description

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zombie_imp-0.0.4.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zombie_imp-0.0.4-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file zombie_imp-0.0.4.tar.gz.

File metadata

  • Download URL: zombie_imp-0.0.4.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for zombie_imp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c888321fbd942f1a3205c0923a2f21d3ed6e5ab6c2f6237abf43c147f37df97f
MD5 c0214320fc339f2453388e616331445f
BLAKE2b-256 48ac0701001f59a7eee5630b094252ac3019df62110a71aa5282b14a7293ffd3

See more details on using hashes here.

File details

Details for the file zombie_imp-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: zombie_imp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for zombie_imp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ba08bf13602358c7c39561b939e97bba181c7c5f96ff1b2d707e0f43d9e05a7
MD5 965b2ae126670be5d148a0fa36230bfb
BLAKE2b-256 4e438704451c1a8ad255aa27acf302243c9f2cc8e96953696d2968242cb5e235

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page