A tool/library allowing to inject python code into a running python process.
Project description
Hypno
A cross-platform tool/library allowing to inject python code into a running python process. Based on kmaork/pyinjector.
If you are trying to debug a python process, check out kmaork/madbg.
Installation
pip install hypno
Both source distributions, manylinux, musslinux and windows wheels are uploaded to pypi for every release.
Usage
CLI
hypno <pid> <python_code>
API
from hypno import inject_py
inject_py(pid, python_code)
Example
This example runs a python program that prints its pid, and then attaches to the newly created process and injects it with another print statement using hypno.
python -c "import os, time; print('Hello from', os.getpid()); time.sleep(0.5)" &\
hypno $! "import os; print('Hello again from', os.getpid())"
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
hypno-1.0.0.zip
(8.9 kB
view hashes)
Built Distributions
Close
Hashes for hypno-1.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8c49caf3026f81b13f0e702f843f238a65e81021786188cc339edaebf7d562 |
|
MD5 | 39fccdc42bac4da4060445642cf4ec84 |
|
BLAKE2b-256 | d6ca60770a5c561eebe72790bb1fd794553415d24ae24ac286beaba7aefaa503 |
Close
Hashes for hypno-1.0.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ca6f11676845d1bb8520dcf480c99ddfe5ed8c92b5b9bfd08a9d7dbea38a96 |
|
MD5 | 80e99f2618399336e8e0a7bb6b02235a |
|
BLAKE2b-256 | 4d5879494e61445d3899f2c794d37798c0c5bafc2da9fe9fbeef954c601f2193 |
Close
Hashes for hypno-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80deb6dd302a5838214f9c6cc862bf9532b6e769e82f16d0afd232c2ea2efac1 |
|
MD5 | 79ea824300467f821a502bbd53ba9624 |
|
BLAKE2b-256 | 0b900685453cc246da9c0f4cd1435a521f176c1ba14dd9a0c517686463a2406e |
Close
Hashes for hypno-1.0.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b370608029983d4264e8e9d08380826389e1e9a79400da5aa6f96fb4a83453d |
|
MD5 | de6ac56c858a1b6bf6721ea4aa3f38bf |
|
BLAKE2b-256 | e09d130736fabe20dde92bf5bd725415deb89d9a994de2f318ee07f2e1dfeda4 |
Close
Hashes for hypno-1.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac69bba8d67dc715722c8a224aaa7b605d846c2e120420e85f143ff264e60a4b |
|
MD5 | f88864052cd2aab954ff57aeda0d17b2 |
|
BLAKE2b-256 | 6b6ce04ca6514041a097d95084339a344f93a8100eff3687d7e6d4dea5009dbe |
Close
Hashes for hypno-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25549c7ca12cc656a5a34b7908c355b1ef23a29d8622ff3032810cc377cf517c |
|
MD5 | 88cf578a6192e1e286504978a94beb75 |
|
BLAKE2b-256 | b330aa22d38dd53d9647fb423f6d2f42771f5d82a2af75b6903fa1f29a963c8c |
Close
Hashes for hypno-1.0.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ece99786e0240643f92e9a342b6f5f869b99fc881fd105a5e9540dfa7de0c9 |
|
MD5 | 4171ca576235b4c9dbee8f5c36cb8177 |
|
BLAKE2b-256 | 8acde6adb0cdaa053e10a4f9174e9b538db988326648542c083defc64bbe0080 |
Close
Hashes for hypno-1.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 243982d21db50d54295ab7467317df1a57be49b240db39ee87ef4ff0d6277de3 |
|
MD5 | 9cc787de89bfacb198019b1722ce6b2b |
|
BLAKE2b-256 | 7f2e9c2b82dd3ca2ae5b93fcb908cc07af300fd9d2b86dc111c80b3def9beffb |
Close
Hashes for hypno-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5175df3770cd3952fe1bcc0fd041241d373523f2789035604144460ec4e9106 |
|
MD5 | c5cd6c92816fc0425cb007a441433762 |
|
BLAKE2b-256 | 5c7a88e16461bcfd8d350a7b6e32ee9190099e632a1b90c2d0dbe6b1a3dacfdb |
Close
Hashes for hypno-1.0.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28f53f6b361094707f3e768af71374ad8671065b976d8308ecc8c4decf7e010 |
|
MD5 | f805e7c79f93e04e66b66668e63adb80 |
|
BLAKE2b-256 | 2d39d72647487e2ad9d93ce6a95ace6abb3a7aff7d52b82e3c5c4d6999399d91 |
Close
Hashes for hypno-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c16ed22bf1aa5af36820bdc5bcd896d8b6b5b35ea3918bfed6f3a78aa85bb0 |
|
MD5 | f25c1b418e5b5fd342833d02a8eeeab0 |
|
BLAKE2b-256 | 86ab880690be255d775cabcf3f8f6fb1333736770ad6c1a68f78c5f6c2e96b3b |
Close
Hashes for hypno-1.0.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f237de9f875a22895b882307d5c91258d70b56028affcb77e3229518e0d301 |
|
MD5 | 7747668ffd94d484c6ba3be1a3392395 |
|
BLAKE2b-256 | 1a4c241872dff115cba58252c9b7a375ef1ca26f3856a4850b8c6b96adfa091c |
Close
Hashes for hypno-1.0.0-cp37-cp37m-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fb0a3258b4899d6be69487147d961e5357a64ed3a4a5a07daede7209dd7f9b4 |
|
MD5 | 8623a1dfb4685f9860df073489ff576b |
|
BLAKE2b-256 | 8cca07ddfbf5233772112a97e3ac26acd99c69376e88dfefcd84595eb104d3f3 |
Close
Hashes for hypno-1.0.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c53e7ea38322dfb350de7fe57e8681de974f64290d5b1bc33e70ca52cd7e1a6 |
|
MD5 | e73127d11e1a3b2c86ed3c40ca1d679f |
|
BLAKE2b-256 | 0e72f3c44abde5965ff74668fd916e6d022826a5b18791015374b379697cc67a |