Python Code Injection Library
Project description
Injectify is a code injection library that allows you to merge code that you have written into code from a seprate package.
Documentation: https://injectify.readthedocs.io
Installing
Install and update using pipenv (or pip, of course):
$ pipenv install injectify
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
Features
Injectify can inject the following objects: * classes * functions * nested functions * methods * modules
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.2.0.tar.gz
(23.6 kB
view hashes)
Built Distribution
Close
Hashes for injectify-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d673e69efdc2f15be2cc1443c7a37b5c6b3030b488bbc254c992f39e479c296 |
|
MD5 | db303edf9757fa964e274a19a6d965eb |
|
BLAKE2b-256 | ad19cd09d71331b8f17286fd01fe282c060c216cf6d1ceb51baade68a80a3120 |