{"categories":[{"label":"Terminals","url":"https://skillfed.io/packages/category/terminals"}],"enrichment":{"capability":"Automatically colors Python exception tracebacks in the terminal to make them easier to read and scan visually.","skillfed_tags":["debugging","terminal-ui"],"use_cases":["Debugging scripts interactively in the terminal where colored, visually distinct stack traces reduce cognitive load when scanning for the error origin.","Adding to a development environment startup file to automatically color all uncaught exceptions without modifying individual scripts.","Running third-party Python scripts with colored output by wrapping them (python -m colored_traceback script.py) without source modification.","Making exception output in CI/CD logs or terminal sessions more readable when reviewing test failures or production errors."],"what_it_does":"Colored Traceback hooks into Python's exception display system to apply syntax highlighting and color to uncaught exception tracebacks, making them significantly easier to scan visually in the terminal. The package works by intercepting the default traceback formatter and applying color via pygments for syntax highlighting and colorama for cross-platform terminal support (especially on Windows, which lacks native ANSI escape sequence support).\n\nYou can activate it with a single import statement in your script or REPL, either as a one-liner (import colored_traceback.auto) or with explicit control (colored_traceback.add_hook()). It respects whether stderr is being piped to another process, suppressing color by default unless you explicitly pass always=True. The package also supports being run as a module wrapper (python -m colored_traceback somefile.py) to color tracebacks from external scripts without modifying them.","worth_installing":"Yes, if you spend time debugging in the terminal. It's a low-friction, zero-configuration enhancement that makes exception tracebacks genuinely easier to read. The dormant maintenance is not a concern for a simple, stable utility\u2014no security vulnerabilities are known, and the two dependencies (pygments, colorama) are mature and widely used. Install it if visual clarity in error output matters to your workflow."},"id":"colored-traceback","links":{"html":"https://skillfed.io/packages/colored-traceback","md":"https://skillfed.io/packages/colored-traceback.md","pypi":"https://pypi.org/project/colored-traceback/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-07-13","license_spdx":null,"license_treatment":"permissive","name":"colored-traceback","python_support":"unspecified","summary":"Automatically color uncaught exception tracebacks"},"popularity":{"monthly_downloads":858542,"position":4881,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.2"}
