Skip to main content

Python package made for better PIP access

Project description

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.

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

reincarnation-1.3.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

reincarnation-1.3.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file reincarnation-1.3.2.tar.gz.

File metadata

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

File hashes

Hashes for reincarnation-1.3.2.tar.gz
Algorithm Hash digest
SHA256 7d1ef93c92e0ff4743e37b6163ba59c6353d8a6e8e85856d3a43af7485b25d17
MD5 469ba65487a82b8729ffc297b2864a32
BLAKE2b-256 91091ca140481756d68a5bb6acb61826188312fca5915c76e03622827ed8ebe4

See more details on using hashes here.

File details

Details for the file reincarnation-1.3.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for reincarnation-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0be378c396af171a221dc239498a03264062db080508229068f5530e0aa560b8
MD5 c0df5f39468f3474c0673b1e69ddb4f1
BLAKE2b-256 4cf20c1b1a3ad79558ad47bf206d9a9018fa61b43bfc476887b844d965ab4e68

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