Skip to main content

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

Project description

zombie-imp

A particularly mischevious 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.2.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

zombie_imp-0.0.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file zombie-imp-0.0.2.tar.gz.

File metadata

  • Download URL: zombie-imp-0.0.2.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for zombie-imp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 87205ef561d05b0d397489075e1246a577dcaae709470858c819c4c6c9d7f38b
MD5 4bf881d4494a4bda52b4a0e777a8bbc3
BLAKE2b-256 5693fa68bd4acc8a08a8cc8eace010754b54bb57e80f252e9c9a2bd13a5ba50a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zombie_imp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for zombie_imp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d67f958d0cc7a171a98550653a376711b94b6b5ee170592edab5566fbbeed017
MD5 1dafb2177fd702a3a91b68276708e533
BLAKE2b-256 d2fd4cf66ebe21d83cbf5bd0a1ea09a4b1d9a1efaf63e8f58981d576ad7c1f76

See more details on using hashes here.

Supported by

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