Python package made for better PIP access
Project description
Reincarnation: Code Immortality Engine
1.2.0: WHAT'S NEW?
- New function:
log_external_calls - New class:
GhostModule - More
modulefeatures
💥 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 annotationsfor 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_pathto provide resurrected modules. - 🌉 Byte/String Bridge: Handles Python 2-to-3 encoding issues transparently.
- 🌐 Ghost Env: Virtual variables to satisfy legacy requirements.
🛠️ GETTING STARTED
-
Install:
pip install reincarnation -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reincarnation-1.2.0.tar.gz.
File metadata
- Download URL: reincarnation-1.2.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e3b2458b7e63b54b965f93bbf4aae6d946964f01f865810ebdfef5f15e537e4
|
|
| MD5 |
2050a4104c20a1a1c03fc7365948b9b3
|
|
| BLAKE2b-256 |
0f47d8125ab1e7635b86fdb9725205f6f1ee504f679bb9d3c909c22e23eef056
|
File details
Details for the file reincarnation-1.2.0-py3-none-any.whl.
File metadata
- Download URL: reincarnation-1.2.0-py3-none-any.whl
- Upload date:
- Size: 262.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d255a5ea1d95edffe8db4ae887ed2170e8f49b3e88a95d448641380f7087f48d
|
|
| MD5 |
a3f7333b3275b0b9b5891f3fa6436035
|
|
| BLAKE2b-256 |
d53d98fe6edc3e252150db419c015bf2c632d93aade9341da80382e8a0830bb5
|