Registry / testing / python-scalpel

python-scalpel

JSON →
library1.0b0pypypi✓ verified 82d ago

Scalpel is a Python program analysis framework for building static analysis tools (e.g., call graph extraction, type inference, SSA construction). The current version is 1.0b0 (pre-release beta). Release cadence is irregular; last updated 2022.

pip install python-scalpel
INSTALL
IMPORT
SIG · PYTHON-SCALPEL
P
python-scalpel
testingpythonv1.0b0
Install
4.4s avg
Import
Disk
48MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0b0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 4.4s
py 3.11
✓ —
✓ 4.2s
py 3.12
✕ build_error
✕ build_error
py 3.13
✕ build_error
✕ build_error
py 3.9
✓ —
✓ 4.7s
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Scalpel
import scalpel
from scalpel import Scalpel

Analyze a Python file and extract its call graph.

from scalpel import Scalpel from scalpel.call_graph import CallGraph scalpel = Scalpel('path/to/script.py') call_graph = scalpel.analyze_call_graph() print(call_graph.nodes, call_graph.edges)
Debug
Known issues
gotchaScalpel is still in beta (1.0b0); API is unstable and may change without notice.
fix
Pin to exact version and test thoroughly.
affects: <=1.0b0
deprecatedThe old import path `scalpel.core.Scalpel` has been removed; use `scalpel.Scalpel` directly.
fix
Use `from scalpel import Scalpel`.
affects: >=0.8.0
breakingPython 3.10+ support is experimental; some AST nodes may not be handled correctly.
fix
Prefer Python 3.8 or 3.9 for production use.
affects: >=1.0b0
Upgrade
Version history
1.0b0latest on PyPI · released Dec 25, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
python-scalpel — pip install python-scalpel · libregistry