Skip to main content

Inject code into a running Python process

Project description

https://img.shields.io/pypi/v/pyrasite-ng?style=flat

This package is a fork of https://github.com/lmacken/pyrasite containing several important fixes to make pyrasite work on modern systems.

Requirements

  • gdb (version 7.3+ (or RHEL5+))

On OS X you will need to have a codesigned gdb - see https://sourceware.org/gdb/wiki/BuildingOnDarwin if you get errors while running with –verbose which mention codesigning.

On Linux machines, run echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope before running pyrasite.

Compatibility

Pyrasite works with Python 2.4 and newer. Injection works between versions as well, so you can run Pyrasite under Python 3 and inject into 2, and vice versa.

pyrasite-gui

The graphical interface can be found here: https://github.com/lmacken/pyrasite-gui

Bugs

Report bug of this fork on GitHub: https://github.com/user202729/pyrasite-ng/issues

Alternatively, as a workaround while waiting for the bug to be fixed, it’s possible to use gdb to inject code into Python directly: https://stackoverflow.com/a/70312000/5267751

Authors

Created by Luke Macken with the help of David Malcolm and many other contributors. Logo by Adam Saunders.

Licenses

Code

https://www.gnu.org/graphics/gplv3-127x51.png

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

pyrasite_ng-2.0.3.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrasite_ng-2.0.3-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrasite_ng-2.0.3.tar.gz.

File metadata

  • Download URL: pyrasite_ng-2.0.3.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for pyrasite_ng-2.0.3.tar.gz
Algorithm Hash digest
SHA256 f14b9be0c4e8fef0d0927577e1cd1a6dca6697dbd9d3c0670de247c3174b0461
MD5 e67065204e98ad31545336f11158aa77
BLAKE2b-256 25c32507b837f9949d49e892929d02f63ad3c87c573dd8670a41f5dfcc1f433d

See more details on using hashes here.

File details

Details for the file pyrasite_ng-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyrasite_ng-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for pyrasite_ng-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 874c413f98014c50df0d5d0cfa1708c50f364ff8b505327376f087c312f8e6dc
MD5 67189059aabb39efc48aa886c869b47a
BLAKE2b-256 1b3590a2c013b1738cf887bcd86a4701d4e8c2f0f5fa0e8e41928c8b61c016eb

See more details on using hashes here.

Supported by

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