$npx skillfedfor your agent

better-exceptions

Pretty and helpful exceptions, automatically

With conditionsPyPI Software DevelopmentReleased Jan 2021589.5K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — better_exceptions-0.3.3-py3-none-any.whl
v0.3.3 · released 2021-01-29 · 1 runtime deps: colorama

Yes, if you do development work in Python and want better exception visibility without code changes. The low install friction, active maintenance, and zero known vulnerabilities make it a safe addition to a development environment. Not necessary for production unless you explicitly want formatted exception logging, in which case be careful to disable the environment variable in production.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires the BETTER_EXCEPTIONS environment variable to be set; without it, exceptions display normally.
  • Low install friction with a single lightweight dependency (colorama).
  • Actively maintained as of July 2026, though the latest release was in January 2021.

License · maintenance · safety

(unclear) — License treatment is unclear in the metadata; the description references MIT licensing, but this is not formally declared in the package metadata.

last release 2021-01-29 (2023 days) · last repo commit 2026-07-10 · 4,720 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 589,528 downloads/mo, #5,861 on PyPI

Verify before relying

pip install better-exceptions
export BETTER_EXCEPTIONS=1
python -m better_exceptions
  • Whether the package works with current Python versions (requires_python is unspecified in metadata).
  • Whether the MIT license claim in the description is the authoritative license for this package.
Same gist for agents: .md · .json

What it is and what it does

better-exceptions hooks into Python's exception system to display tracebacks with syntax highlighting and local variable values inline, making it easier to understand what went wrong at a glance. It works by setting an environment variable and is designed to be transparent—once activated, all exceptions in your Python process are automatically formatted without code changes. The package depends only on colorama for terminal color support.

You can use it in regular scripts, the Python REPL (via `python -m better_exceptions`), unittest test runners (with a monkey patch), or Django applications (via middleware). Advanced usage allows disabling value truncation. The package is intended for development and debugging; the documentation explicitly warns against leaving the environment variable set in production to avoid leaking sensitive data in logs.

Use it for

  • Interactive debugging in the Python REPL to see local variables and syntax-highlighted code context.
  • Development workflows where you want richer exception output without modifying application code.
  • Django projects where middleware integration provides formatted exceptions across the entire request lifecycle.
  • Unit test debugging to see better-formatted assertion failures and error context.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you do development work in Python and want better exception visibility without code changes.

The low install friction, active maintenance, and zero known vulnerabilities make it a safe addition to a development environment. Not necessary for production unless you explicitly want formatted exception logging, in which case be careful to disable the environment variable in production.

Install

better-exceptions on PyPI

Before you install

Low install friction with a single lightweight dependency (colorama). Actively maintained as of July 2026, though the latest release was in January 2021.

Requires the BETTER_EXCEPTIONS environment variable to be set; without it, exceptions display normally.

License in practice

License treatment is unclear in the metadata; the description references MIT licensing, but this is not formally declared in the package metadata.

Quickstart

pip install better-exceptions
export BETTER_EXCEPTIONS=1
python -m better_exceptions

Verify before relying

  • Whether the package works with current Python versions (requires_python is unspecified in metadata).
  • Whether the MIT license claim in the description is the authoritative license for this package.

Package facts

LicenseNot declared unclear
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
colorama
MaintenanceActively maintained 2,023 days since the last release
Last repo commit
First released
Downloads589,528 / month, #5,861 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: better_exceptions-0.3.3-py3-none-any.whl

Tags

Capabilities
pretty print exceptionspython exception formattingdebug with local variablescolorized error outputbetter error messages
Topics
debuggingexception-handlingdevelopment-tools
PyPI keywords
prettybetterexceptionsexceptionerrorlocaldebugdebugginglocals

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pretty print exceptions”

  • better-exceptionsFormats Python exceptions with syntax highlighting and local variable…
  • traceriteFormats Python exceptions and tracebacks into readable HTML, JSON,…
  • traceback-with-variablesAutomatically captures and displays local variables in Python…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also tracerite · lib-cli-exit-tools · result · crashtest · prettyprinter · traceback-with-variables · colour-runner · pyupgrade · zope.exceptions · djhtml