# lmacken/pyrasite

Inject code into running Python processes

Repository: https://github.com/lmacken/pyrasite
Canonical: https://ross.abutalabs.com/products/pyrasite
Homepage: http://pyrasite.com
Language: Python
License: GPL-3.0
License Family: copyleft
Topics: python, gdb, debugging, monitoring
Last push: 2025-04-07T02:52:38+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 15, release rhythm 35, longevity 100
- inputs: {"age_days": 5471, "days_push": 513, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2873, forks 218 (observed 2026-08-28T04:07:27.173732+00:00)

## What it is
Pyrasite is a Python library and CLI tool for injecting arbitrary code into running Python processes using gdb. It supports cross-version injection (Python 2 and 3) and includes an optional GUI.

## Use cases
- inject code into a running Python process
- debug a live Python process without restarting it
- inspect runtime state of a hung Python application
- run code in a Python 2 process from a Python 3 host
- attach to a production Python process for diagnostics

## When to choose
- you need to introspect or modify a running Python process at runtime
- you want cross-version Python injection via gdb
- you're debugging a process you cannot restart

## When to avoid
- you need a general-purpose debugger with breakpoints and stepping
- gdb is unavailable or cannot be codesigned on your system
- you only need logging or metrics rather than code injection

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools
- domain: developer-tools
- platform: python, cli
- tags: code-injection, gdb, runtime-debugging, python-processes, debugging, linux, macos

## Member repositories
- lmacken/pyrasite (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:27.173732+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:48:27.430902+00:00, confidence not recorded.
  - readme: https://github.com/lmacken/pyrasite (fetched 2026-08-28T04:07:27.173732+00:00, sha 95a3e560ea83)
- Data as of 2026-08-30T08:39:29.467469+00:00.
