Registry / testing / executing

executing

JSON →
library2.2.1pypypi✓ verified 28d ago

Executing is a library for getting the currently executing AST node of a frame and other related information. The current version is 2.2.1, and it has a regular release cadence with updates addressing compatibility and performance.

pip install executing
INSTALL
IMPORT
SIG · EXECUTING
E
executing
testingpythonv2.2.1
Install
1.5s avg
Import
51ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.2.1 · 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
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.052s · 18MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.050s · 18MB
16MB installed
● package 16MB
Code
Verified usage

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

Executing
✓ from executing import Executing
✗ from executing import get_ast_node
Source
✓ from executing import Source
cache
✓ from executing import cache

Quick start to retrieve the currently executing AST node.

from executing import get_ast_node import os node = get_ast_node(os.environ.get('FRAME', '')) print(node)
Debug
Known issues
breakingPost 2.1.0, there are breaking changes related to Python 3.12.5 source position handling.
fix
Update your code to adapt to the new source position changes.
affects: >=2.1.0
gotchaEnsure you are using Python 3.8 or later, as earlier versions are not supported.
fix
Upgrade your Python version to meet the requirements.
affects: <3.8
Upgrade
Version history
2.2.1latest on PyPI · released Sep 1, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
executing — pip install executing · libregistry