Comparison
better-exceptions vs stackprinter vs traceback-with-variables
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Pretty and helpful exceptions, automatically
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install better-exceptionsDebug-friendly stack traces, with variable values and semantic highlighting
Low maintenance activity. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install stackprinterAdds variables to python traceback. Simple, lightweight, controllable. Debug reasons of exceptions by logging or pretty printing colorful variable contexts for each frame in a stacktrace, showing every value. Dump locals environments after errors to console, files, and loggers. Works with Jupyter and IPython.
Low maintenance activity. Last release 13 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install traceback-with-variablesIn short
- better-exceptions looks abandoned: avoid it for new projects.
- traceback-with-variables is the most used: 1.7M downloads a month, 2.9× more than stackprinter.
- Maintenance is comparable: stackprinter 31, traceback-with-variables 29 on Pythie’s Index.
- traceback-with-variables is growing fastest: downloads +125% over the last month.
Side by side
| Metric | better-exceptions | stackprinter | traceback-with-variables |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | 31 |