Hack and wrap Python function with decorators.
Project description
hackwrap
Version: 0.2.0
A powerful decorator-based module to "hack" Python functions and classes — inject, modify, or protect behavior dynamically.
✨ Features
- 🔄 Inherit function behavior dynamically
- 🧬 Inject modules and variables into functions
- 🧵 Auto-thread or async-wrap functions
- 🔒 Make functions private, undeletable, or uncallable
- ♻️ Promote functions to global scope or recover deleted ones
- 🧪 Inspect source, signature, decorators, and annotations via the
thisglobal object - ⚙️ Create universal operator-overloading wrappers using
onment
Installation
pip install hackwrap
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
hackwrap-0.2.0.tar.gz
(5.1 kB
view details)
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 hackwrap-0.2.0.tar.gz.
File metadata
- Download URL: hackwrap-0.2.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4c937d902bf3c1240da397970bb7e98890c7952285415fb7ccc46de3447c1e7
|
|
| MD5 |
e1959d04f923d807deb0eb6e2a1cbd72
|
|
| BLAKE2b-256 |
dd8b154307f6e637f9dcd0fe42b3d476ce95fb1521f503f288999850b06f5202
|
File details
Details for the file hackwrap-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hackwrap-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32a87d258da447b0d16538339999c18f1d157c20918833e03a3dd350c6d7d41c
|
|
| MD5 |
2f7090d840a4fe3eb76e2bca182090c7
|
|
| BLAKE2b-256 |
74d8c83010e93c13e70b3b17df314e2f5126b06cca3531cac5faf6c470a9de50
|