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.0.tar.gz
(19.1 kB
view hashes)
Built Distribution
Close
Hashes for injectify-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3071ff78afcd7f36f507b3ea29b83cede3c3c58078fd3068bae939d86cfc0414 |
|
MD5 | 013c28a5066d29317f371081f6fa2df2 |
|
BLAKE2b-256 | e93e1f62c21ed8612e989ec3da86f93d571e2d47bd0810b67696eb3dcc1c5417 |