Python Code Injection Library
Project description
A code injection library for Python.
Basic Example:
from injectify import inject, HeadInjector
def foo(x):
return x
print(foo(10)) # 10
@inject(target=foo, injector=HeadInjector())
def handler():
x = 9000
print(foo(10)) # 9000
Supported Features
Injection is ready to inject code into different kinds of objects.
Inject into functions
Inject into methods
Inject into nested functions
Inject into classes
Inject into modules
Installation
The recommended way to install injectify is to use pipenv (or pip, of course):
$ pipenv install injectify
Adding injectify to Pipfile's [packages]…
✔ Installation Succeeded
…
Injectify officially supports Python 3.5+.
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
injectify-0.1.1.tar.gz
(19.1 kB
view hashes)
Built Distribution
Close
Hashes for injectify-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6345f1c5dbd470aec9b5dff99cddb626a063b82867212c7eb3e7023b8d020cc |
|
MD5 | 08837ba1d3be917defcd35448d46e1a6 |
|
BLAKE2b-256 | b53ea1d5e434264a40be78b83fdc142ffe7e9518f7553530c00aaf8ba3123f76 |