Skip to main content

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.


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


Injectify can inject the following objects: * classes * functions * nested functions * methods * modules

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for injectify, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size injectify-0.2.0.tar.gz (23.6 kB) File type Source Python version None Upload date Hashes View
Filename, size injectify-0.2.0-py2.py3-none-any.whl (11.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page