Skip to main content

A tool/library allowing to inject python code into a running python process.

Project description

Hypno

PyPI version PyPI Supported Python Versions GitHub license Tests (GitHub Actions) chat

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


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 details)

Uploaded Source

Built Distributions

hypno-1.0.0-cp310-cp310-win_amd64.whl (9.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

hypno-1.0.0-cp310-cp310-win32.whl (9.4 kB view details)

Uploaded CPython 3.10 Windows x86

hypno-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl (7.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

hypno-1.0.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

hypno-1.0.0-cp39-cp39-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

hypno-1.0.0-cp39-cp39-win32.whl (9.4 kB view details)

Uploaded CPython 3.9 Windows x86

hypno-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl (7.4 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

hypno-1.0.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

hypno-1.0.0-cp38-cp38-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

hypno-1.0.0-cp38-cp38-win32.whl (9.4 kB view details)

Uploaded CPython 3.8 Windows x86

hypno-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl (7.4 kB view details)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

hypno-1.0.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

hypno-1.0.0-cp37-cp37m-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

hypno-1.0.0-cp37-cp37m-win32.whl (9.4 kB view details)

Uploaded CPython 3.7m Windows x86

hypno-1.0.0-cp37-cp37m-musllinux_1_2_x86_64.whl (7.4 kB view details)

Uploaded CPython 3.7m musllinux: musl 1.2+ x86-64

hypno-1.0.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

File details

Details for the file hypno-1.0.0.zip.

File metadata

  • Download URL: hypno-1.0.0.zip
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0.zip
Algorithm Hash digest
SHA256 5d2742ab653a0e602e4d49072d9462947e8cb6aa699ac5b5b850ff382f395265
MD5 5dd1de6df453349616ddf003fb325c91
BLAKE2b-256 bc6bc08e622c830ca4f7e6a5958ae76398dc749fd565c57666b8fbb2d9eb0252

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: hypno-1.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6c8c49caf3026f81b13f0e702f843f238a65e81021786188cc339edaebf7d562
MD5 39fccdc42bac4da4060445642cf4ec84
BLAKE2b-256 d6ca60770a5c561eebe72790bb1fd794553415d24ae24ac286beaba7aefaa503

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: hypno-1.0.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 26ca6f11676845d1bb8520dcf480c99ddfe5ed8c92b5b9bfd08a9d7dbea38a96
MD5 80e99f2618399336e8e0a7bb6b02235a
BLAKE2b-256 4d5879494e61445d3899f2c794d37798c0c5bafc2da9fe9fbeef954c601f2193

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for hypno-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 80deb6dd302a5838214f9c6cc862bf9532b6e769e82f16d0afd232c2ea2efac1
MD5 79ea824300467f821a502bbd53ba9624
BLAKE2b-256 0b900685453cc246da9c0f4cd1435a521f176c1ba14dd9a0c517686463a2406e

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: hypno-1.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ac69bba8d67dc715722c8a224aaa7b605d846c2e120420e85f143ff264e60a4b
MD5 f88864052cd2aab954ff57aeda0d17b2
BLAKE2b-256 6b6ce04ca6514041a097d95084339a344f93a8100eff3687d7e6d4dea5009dbe

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: hypno-1.0.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 58d55f38969b012ff7c4c637bef2a2653d5d8634ed9fcf8b0ee2eee0000704a2
MD5 58d2b28b64c6605351815febdf0e1440
BLAKE2b-256 5193fb4a6c52056c85244566643cd24c4a5dd8b741ddd1483d47943e59cb62b4

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for hypno-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 25549c7ca12cc656a5a34b7908c355b1ef23a29d8622ff3032810cc377cf517c
MD5 88cf578a6192e1e286504978a94beb75
BLAKE2b-256 b330aa22d38dd53d9647fb423f6d2f42771f5d82a2af75b6903fa1f29a963c8c

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: hypno-1.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 243982d21db50d54295ab7467317df1a57be49b240db39ee87ef4ff0d6277de3
MD5 9cc787de89bfacb198019b1722ce6b2b
BLAKE2b-256 7f2e9c2b82dd3ca2ae5b93fcb908cc07af300fd9d2b86dc111c80b3def9beffb

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: hypno-1.0.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c0f6ff228dfcf561da436b4e3d3a48437e51c93600549908549b0ab2123988ad
MD5 02c29173cf12f5d90ba04b381b01fc22
BLAKE2b-256 e3b93b345a383f4e811d9cea1e550dd6acb4a09a28c3724cd067e2431bc52a97

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for hypno-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f5175df3770cd3952fe1bcc0fd041241d373523f2789035604144460ec4e9106
MD5 c5cd6c92816fc0425cb007a441433762
BLAKE2b-256 5c7a88e16461bcfd8d350a7b6e32ee9190099e632a1b90c2d0dbe6b1a3dacfdb

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: hypno-1.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 34c16ed22bf1aa5af36820bdc5bcd896d8b6b5b35ea3918bfed6f3a78aa85bb0
MD5 f25c1b418e5b5fd342833d02a8eeeab0
BLAKE2b-256 86ab880690be255d775cabcf3f8f6fb1333736770ad6c1a68f78c5f6c2e96b3b

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp37-cp37m-win32.whl.

File metadata

  • Download URL: hypno-1.0.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for hypno-1.0.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 80f237de9f875a22895b882307d5c91258d70b56028affcb77e3229518e0d301
MD5 7747668ffd94d484c6ba3be1a3392395
BLAKE2b-256 1a4c241872dff115cba58252c9b7a375ef1ca26f3856a4850b8c6b96adfa091c

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp37-cp37m-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for hypno-1.0.0-cp37-cp37m-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0fb0a3258b4899d6be69487147d961e5357a64ed3a4a5a07daede7209dd7f9b4
MD5 8623a1dfb4685f9860df073489ff576b
BLAKE2b-256 8cca07ddfbf5233772112a97e3ac26acd99c69376e88dfefcd84595eb104d3f3

See more details on using hashes here.

File details

Details for the file hypno-1.0.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page