skillfed

stack-data

Extract data from python stack frames and tracebacks for informative displays

stack-data Permissive license MIT Active 51 v0.6.3 released

Install

stack-data on PyPI

pip

pip install stack-data

uv

uv add stack-data

poetry

poetry add stack-data

Package 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

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Debuggers

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:

futurecoder example (image)

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
python traceback formattingstack frame inspectiondebugging output enhancementipython traceback displayvariable inspection in framessource code context extractionenhanced error messages

Similar packages