# cknd/stackprinter

Debugging-friendly exceptions for Python

Repository: https://github.com/cknd/stackprinter
Canonical: https://ross.abutalabs.com/products/stackprinter
Language: Python
License: MIT
License Family: permissive
Topics: python, error-logging, debugging
Last push: 2026-04-17T07:09:30+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 77, release rhythm 48, longevity 100
- inputs: {"age_days": 2919, "days_push": 138, "days_rel": 138, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1299, forks 44 (observed 2026-08-28T04:04:17.455827+00:00)

## What it is
A Python library that produces enhanced exception tracebacks showing source code context and the current values of nearby variables. It prints to the console or returns a string suitable for logging, making crashes easier to diagnose without an interactive debugger.

## Use cases
- debug python exceptions with variable values
- print better tracebacks in log files
- show source context and variable state on crashes
- format exceptions for error logging
- debug code running on remote servers with only logs
- replace default python traceback output

## When to choose
- you need detailed crash diagnostics in log files where no debugger is available
- you want variable values captured at the moment of an exception
- you want a lightweight drop-in replacement for Python's default traceback formatting

## When to avoid
- you need a full error monitoring and aggregation service like Sentry
- you want an interactive step debugger
- you are not working in Python

## Facets
- artifact type: library
- maturity: stable
- function: logging, error-handling, developer-tools
- domain: developer-tools
- platform: python, cross-platform
- tags: tracebacks, debugging, exceptions, error-reporting, python

## Member repositories
- cknd/stackprinter (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:17.455827+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:53:25.290404+00:00, confidence not recorded.
  - readme: https://github.com/cknd/stackprinter (fetched 2026-08-28T04:04:17.455827+00:00, sha 7be9516ff56f)
  - registry_pypi: https://pypi.org/pypi/stackprinter/json (fetched 2026-08-29T12:09:56.173299+00:00, sha 0d0ba03017a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
