{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Reformats Python exception tracebacks with color, context, and configurable layout to make errors easier to read and debug in the terminal.","skillfed_tags":["debugging","terminal-ui","error-handling"],"use_cases":["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."],"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.\n\nYou can also import it directly in individual projects and configure its output\u2014controlling 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.","worth_installing":"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."},"id":"pretty-errors","links":{"html":"https://skillfed.io/packages/pretty-errors","md":"https://skillfed.io/packages/pretty-errors.md","pypi":"https://pypi.org/project/pretty-errors/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2021-11-24","license_spdx":null,"license_treatment":"permissive","name":"pretty-errors","python_support":"unspecified","summary":"Prettifies Python exception output to make it legible."},"popularity":{"monthly_downloads":159216,"position":10704,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.25"}
