py_better_exchook
nice Python exception hook replacement (by albertz)
PrettyErrors
Prettify Python exception output to make it legible. (by onelivesleft)
py_better_exchook | PrettyErrors | |
---|---|---|
2 | 6 | |
40 | 2,694 | |
- | - | |
5.6 | 0.0 | |
4 months ago | over 2 years ago | |
Python | Python | |
BSD 2-clause "Simplified" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
py_better_exchook
Posts with mentions or reviews of py_better_exchook.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-02.
-
Creating Beautiful Tracebacks with Python's Exception Hooks
printing relevant info for each frame (referenced variables)
-
Icecream: Never use print() to debug again in Python
If you like this, you might also like my small debugging utility, a better_exchook replacement: https://github.com/albertz/py_better_exchook
Simple example:
assert x == 4
PrettyErrors
Posts with mentions or reviews of PrettyErrors.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-02.
- Show HN: Python errors that are legible
-
Creating Beautiful Tracebacks with Python's Exception Hooks
# https://github.com/onelivesleft/PrettyErrors/ # pip install pretty_errors import pretty_errors # `configure` can be omitted if you're satisfied with default settings pretty_errors.configure( filename_display = pretty_errors.FILENAME_EXTENDED, line_number_first = True, display_link = True, line_color = pretty_errors.RED + '> ' + pretty_errors.default_config.line_color, code_color = ' ' + pretty_errors.default_config.line_color, truncate_code = True, display_locals = True ) do_stuff()
- Prettify Python exception output to make it legible.
- PrettyErrors, a module to format exception reports
-
Pretty Error Output In Python
Today's post demonstrated how to use the PrettyErrors to make our error debugging experience much more pleasant.
What are some alternatives?
When comparing py_better_exchook and PrettyErrors you can also consider the following projects:
better-exceptions - Pretty and useful exceptions in Python, automatically.
python-devtools - Dev tools for python
PyInquirer - A Python module for common interactive command line user interfaces
snoop - A powerful set of Python debugging tools, based on PySnooper
hello-python-fire
q - Quick and dirty debugging output for tired programmers. ⛺
Loguru - Python logging made (stupidly) simple
PySnooper - Never use print for debugging again
stackprinter - Debugging-friendly exceptions for Python
ray - Debug with Ray to fix problems faster
CPython - The Python programming language
py_better_exchook vs better-exceptions
PrettyErrors vs better-exceptions
py_better_exchook vs python-devtools
PrettyErrors vs PyInquirer
py_better_exchook vs snoop
PrettyErrors vs hello-python-fire
py_better_exchook vs q
PrettyErrors vs Loguru
py_better_exchook vs PySnooper
PrettyErrors vs stackprinter
py_better_exchook vs ray
PrettyErrors vs CPython