Skip to main content

Reincarnation: Code Immortality Engine

1.2.8: WHAT'S NEW?

  • More GhostModule features
  • More functions and code
  • New file: ignored_types.py

💥 THE PROBLEM: CODE IS DYING 💥

Python evolves and breaks the old. Libraries like pythonnet or modules like distutils become ghosts in the digital graveyard.

🚀 THE SOLUTION: REINCARNATION ENGINE 🚀

Reincarnation is digital resurrection for your legacy Python projects. It allows you to run outdated code on modern interpreters seamlessly.

FEATURES: THE NINE LIVES OF CODE

  • 🔮 Future Annotations: Uses from __future__ import annotations for lazy evaluation.
  • ⚙️ AST Transpilation: Rewrites old syntax (like print x) into modern calls (print(x)) on the fly.
  • 👻 Module Polyfills: Replaces removed modules (imp, distutils, Tkinter) with modern equivalents.
  • 🎭 Version Spoofing: Tricks libraries into thinking they run on older Python versions.
  • 🔗 Global Import Hook: Intercepts imports via sys.meta_path to provide resurrected modules.
  • 🌉 Byte/String Bridge: Handles Python 2-to-3 encoding issues transparently.
  • 🌐 Ghost Env: Virtual variables to satisfy legacy requirements.

🛠️ GETTING STARTED

  1. Install: pip install reincarnation

  2. The Ritual: Add this at the very beginning of your legacy script:

import reincarnation
reincarnation.enable_universal_resurrection() 

import tkinter 
import imp 
print 'Hello from the past!' 

⚡️ ADVANCED USAGE Define custom shims for specific variables:

import reincarnation
def my_modern_ref(dll): print(f"Linked: {dll}")

reincarnation.enable_resurrection(
    shims={"clr.AddReference": my_modern_ref}
)

🤝 CONTRIBUTING Contributions are welcome! Join us in building a more resilient software future.

📜 LICENSE Licensed under the MIT License.

Metadata

Release files for reincarnation 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reincarnation 1.3.2
File Size Uploaded Provenance Actions
reincarnation-1.3.2.tar.gz 16.1 kB Without provenance Details for reincarnation-1.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reincarnation 1.3.2
File Interpreter ABI Platform Actions
reincarnation-1.3.2-py3-none-any.whl Python 3 none any Details for reincarnation-1.3.2-py3-none-any.whl

Total release size: 36.1 kB

Release files / reincarnation-1.3.2.tar.gz

Download URL reincarnation-1.3.2.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7d1ef93c92e0ff4743e37b6163ba59c6353d8a6e8e85856d3a43af7485b25d17
BLAKE2b-256 checksum
How to use checksums
91091ca140481756d68a5bb6acb61826188312fca5915c76e03622827ed8ebe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / reincarnation-1.3.2-py3-none-any.whl

Download URL reincarnation-1.3.2-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0be378c396af171a221dc239498a03264062db080508229068f5530e0aa560b8
BLAKE2b-256 checksum
How to use checksums
4cf20c1b1a3ad79558ad47bf206d9a9018fa61b43bfc476887b844d965ab4e68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for reincarnation 1.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page