PrettyErrors
Prettify Python exception output to make it legible. (by onelivesleft)
better-exceptions
Pretty and useful exceptions in Python, automatically. (by Qix-)
PrettyErrors | better-exceptions | |
---|---|---|
6 | 3 | |
2,694 | 4,531 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | about 1 year ago | |
Python | Python | |
MIT 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.
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.
better-exceptions
Posts with mentions or reviews of better-exceptions.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-04.
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
Maybe it's just for me, but my out of box experience with stackprinter is better than with better-exceptions, which has 4 times more stars on github.
-
what are your most used packages for general development?
Great comments. Let me add better exceptions, which adds useful context to exceptions—helping understanding why they happened.
-
Creating Beautiful Tracebacks with Python's Exception Hooks
# https://github.com/Qix-/better-exceptions # pip install better_exceptions # export BETTER_EXCEPTIONS=1 import better_exceptions better_exceptions.MAX_LENGTH = None # Check if you TERM variable is set to `xterm`, if not set below variable - https://github.com/Qix-/better-exceptions/issues/8 better_exceptions.SUPPORTS_COLOR = True better_exceptions.hook() do_stuff() # Raises ValueError
What are some alternatives?
When comparing PrettyErrors and better-exceptions you can also consider the following projects:
PyInquirer - A Python module for common interactive command line user interfaces
stackprinter - Debugging-friendly exceptions for Python
hello-python-fire
py_better_exchook - nice Python exception hook replacement
Loguru - Python logging made (stupidly) simple
zarr-python - An implementation of chunked, compressed, N-dimensional arrays for Python.
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
CPython - The Python programming language
taskipy - the complementary task runner for python
PySnooper - Never use print for debugging again
UniversalWrapper - A universal shell wrapper for Python
PrettyErrors vs PyInquirer
better-exceptions vs stackprinter
PrettyErrors vs hello-python-fire
better-exceptions vs py_better_exchook
PrettyErrors vs Loguru
better-exceptions vs zarr-python
PrettyErrors vs stackprinter
better-exceptions vs Python Fire
PrettyErrors vs CPython
better-exceptions vs taskipy
better-exceptions vs PySnooper
better-exceptions vs UniversalWrapper