--- id: stack-data version: "0.6.3" license: MIT license_treatment: permissive maintenance: active --- # stack-data — Extract data from python stack frames and tracebacks for informative displays License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install stack-data uv add stack-data poetry add stack-data ## Description # stack_data [![Tests](https://github.com/alexmojaki/stack_data/actions/workflows/pytest.yml/badge.svg)](https://github.com/alexmojaki/stack_data/actions/workflows/pytest.yml) [![Coverage Status](https://coveralls.io/repos/github/alexmojaki/stack_data/badge.svg?branch=master)](https://coveralls.io/github/alexmojaki/stack_data?branch=master) [![Supports Python versions 3.5+](https://img.shields.io/pypi/pyversions/stack_data.svg)](https://pypi.python.org/pypi/stack_data) 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](https://futurecoder.io/): ![futurecoder example](https://futurecoder.io/static/img/features/traceback.png) You can install it from PyPI: pip install stack_data ## Basic usage Here's some code we'd like to inspect: ```python 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... ## AI interpretation — verify before relying Extracts and formats data from Python stack frames and tracebacks to display richer debugging context, including source lines, variables, and intelligent piece-based grouping. 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. [View on SkillFed](https://skillfed.io/packages/stack-data) · [View on PyPI](https://pypi.org/project/stack-data/)