$npx skillfedfor your agent

pretty-errors

Prettifies Python exception output to make it legible.

With conditionsPyPI UtilitiesReleased Nov 2021159.2K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pretty_errors-1.2.25-py3-none-any.whl
v1.2.25 · released 2021-11-24 · 1 runtime deps: colorama

Yes, if you spend time debugging Python in the terminal. It's a low-friction install with no security issues and genuinely improves readability of exception output. The dormant maintenance is not a concern for a stable, focused tool that does one thing well. Install globally via python -m pretty_errors for the best experience, or import it in projects that need custom formatting.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a terminal capable of color output; Windows users should use PowerShell or cmder rather than cmd.exe.
  • Can fall back to monochrome with pretty_errors.mono().
  • Low friction install with a single dependency (colorama).

License · maintenance · safety

permissive license (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

last release 2021-11-24 (1724 days) · last repo commit 2024-03-05 · 2,871 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 159,216 downloads/mo, #10,704 on PyPI

Verify before relying

pip install pretty_errors
python -m pretty_errors

Or in code:
import pretty_errors
pretty_errors.configure(display_locals=True)
  • Whether the package works reliably with modern Python versions (3.10+) given its dormant maintenance status since 2021.
  • Compatibility with recent web frameworks that override sys.excepthook (e.g., uvicorn, FastAPI) beyond the replace_stderr() workaround mentioned.
Same gist for agents: .md · .json

What it is and what it does

pretty-errors intercepts Python exceptions and reformats their tracebacks with syntax highlighting, context code snippets, and configurable layout options. It works by installing a custom sys.excepthook or by scraping stderr output when frameworks override the default exception handler. The package is designed to be installed globally via the Python startup procedure (python -m pretty_errors) so it activates for all scripts, including those that raise SyntaxError before import statements can run.

You can also import it directly in individual projects and configure its output—controlling separator characters, line numbers, local variable display, code context lines, and color schemes. It respects environment variables to disable itself when redirecting to files or in non-interactive terminals, and supports path-based whitelisting and blacklisting to hide or highlight specific stack frames.

Use it for

  • Interactive debugging: Run scripts in the terminal and see colorized, readable tracebacks with surrounding code context.
  • Development workflow: Install globally to automatically format all Python exceptions without modifying project code.
  • Framework debugging: Use replace_stderr() to capture and reformat exceptions from frameworks like uvicorn that override the default exception handler.
  • Local variable inspection: Enable display_locals to see variable values at the point of failure in the top stack frame.
  • CI/CD logs: Disable pretty formatting in non-interactive environments using PYTHON_PRETTY_ERRORS_ISATTY_ONLY to keep logs clean.

Worth the install?

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

With conditions

Yes, if you spend time debugging Python in the terminal.

It's a low-friction install with no security issues and genuinely improves readability of exception output. The dormant maintenance is not a concern for a stable, focused tool that does one thing well. Install globally via python -m pretty_errors for the best experience, or import it in projects that need custom formatting.

Install

pretty-errors on PyPI

Before you install

Low friction install with a single dependency (colorama). Dormant since late 2021 but stable; last commit was March 2024. No known vulnerabilities.

Requires a terminal capable of color output; Windows users should use PowerShell or cmder rather than cmd.exe. Can fall back to monochrome with pretty_errors.mono().

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

pip install pretty_errors
python -m pretty_errors

Or in code:
import pretty_errors
pretty_errors.configure(display_locals=True)

Verify before relying

  • Whether the package works reliably with modern Python versions (3.10+) given its dormant maintenance status since 2021.
  • Compatibility with recent web frameworks that override sys.excepthook (e.g., uvicorn, FastAPI) beyond the replace_stderr() workaround mentioned.

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
colorama
MaintenanceDormant 1,724 days since the last release
Last repo commit
First released
Downloads159,216 / month, #10,704 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3

Evidence: pretty_errors-1.2.25-py3-none-any.whl

Tags

Capabilities
python exception formattingtraceback pretty printercolored error outputpython debugging terminalexception stack trace viewerreadable python errorsterminal exception display
Topics
debuggingterminal-uierror-handling

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 › “traceback pretty printer”

  • pretty-errorsReformats Python exception tracebacks with color, context, and…
  • prettyprinterSyntax-highlighted, declarative pretty printer for Python that…
  • colored-tracebackAutomatically colors Python exception tracebacks in the terminal to…

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

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also tracerite · colorlog · stackprinter · termcolor · colored · strip-ansi · ansi · ansimarkup · terminaltexteffects · colorama