stack-data
Extract data from python stack frames and tracebacks for informative displays
Install
stack-data on PyPI
pip
pip install stack-datauv
uv add stack-datapoetry
poetry add stack-dataPackage facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — executing, asttokens, pure-eval |
| Maintenance | actively maintained — 1,048 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: stack_data-0.6.3-py3-none-any.whl
About stack-data
from the package's own PyPI description — quoted content, verbatim
stack_data
Tests (image) Coverage Status (image) Supports Python versions 3.5+ (image)
This is a library that extracts data from stack frames and tracebacks, particularly to display more useful tracebacks than the default. It powers the tracebacks in IPython and futurecoder:
You can install it from PyPI:
pip install stack_data
Basic usage
Here's some code we'd like to inspect:
def foo():
result = []
for i in range(5):
row = []
result.append(row)
print_stack()
for j in range(5):
row.append(i * j)
return result
Note that foo calls a function print_stack(). In reality we can imagine that an exception...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Extracts and formats data from Python stack frames and tracebacks to display richer debugging context, including source lines, variables, and intelligent piece-based grouping.
Low friction: pure Python wheel with three lightweight runtime dependencies (executing, asttokens, pure-eval). Actively maintained with recent commits; last release 1048 days ago but repo shows ongoing activity.
MIT license permits commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
Usage
import inspect
import stack_data
frame = inspect.currentframe()
frame_info = stack_data.FrameInfo(frame)
for line in frame_info.lines:
print(line.render())
Verdict: Well-maintained debugging utility with permissive licensing and low install friction. No known vulnerabilities and active repository support. Suitable for production use in error reporting and interactive debugging contexts.
Needs verification
- Whether the three runtime dependencies (executing, asttokens, pure-eval) have their own security or maintenance concerns
- Performance characteristics when processing very large stack frames or deeply nested code
- Compatibility guarantees across the stated Python 3.5+ range given the 1048-day gap since last release
Similar packages
permissive · top 1,000 on PyPI
sentencepiecepermissive · top 1,000 on PyPI
crashtestpermissive · top 1,000 on PyPI
eval-type-backportpermissive · top 1,000 on PyPI
tblibpermissive · top 1,000 on PyPI
pure-evalpermissive · top 1,000 on PyPI
boolean.pypermissive · top 1,000 on PyPI
tabulatepermissive · top 1,000 on PyPI
hyperframepermissive · top 1,000 on PyPI
tree-sitterpermissive · top 1,000 on PyPI