Metadata-Version: 2.4
Name: reincarnation
Version: 1.2.3
Summary: Python package made for better PIP access
Home-page: https://github.com/CyberPlugger/reincarnation
Author: Andrew Sergeevich
Author-email: jumpki11@hotmail.com
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: setuptools
Requires-Dist: hunter
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Reincarnation: Code Immortality Engine

![](https://img.shields.io/badge/python-3.7%2B-blue.svg)

![](https://img.shields.io/badge/License-MIT-yellow.svg)

# 1.2.0: WHAT'S NEW?
* New function: `log_external_calls`
* New class: `GhostModule`
* More `module` features

## 💥 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:
   
```python
import reincarnation
reincarnation.enable_universal_resurrection() 

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

 ⚡️ ADVANCED USAGE
Define custom shims for specific variables:
``` python
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.
