Injectify
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
Metadata
Release files for injectify 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| injectify-0.2.0.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| injectify-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 34.6 kB
Release files / injectify-0.2.0.tar.gz
| Download URL | injectify-0.2.0.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c8e50cabbc05922ac5a71a07ef71863664def24f667a13bb51a5b3b5897ca9
|
|
BLAKE2b-256 checksum How to use checksums |
8ca23f95bec73e3c82ee6c427c3bd83d0b728f570af70f40d7e0d87863607c1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
|
Release files / injectify-0.2.0-py2.py3-none-any.whl
| Download URL | injectify-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2d673e69efdc2f15be2cc1443c7a37b5c6b3030b488bbc254c992f39e479c296
|
|
BLAKE2b-256 checksum How to use checksums |
ad19cd09d71331b8f17286fd01fe282c060c216cf6d1ceb51baade68a80a3120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
|