py_better_exchook
nice Python exception hook replacement (by albertz)
better-exceptions
Pretty and useful exceptions in Python, automatically. (by Qix-)
py_better_exchook | better-exceptions | |
---|---|---|
2 | 3 | |
40 | 4,531 | |
- | - | |
5.6 | 0.0 | |
4 months ago | about 1 year 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
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 py_better_exchook and better-exceptions you can also consider the following projects:
python-devtools - Dev tools for python
PrettyErrors - Prettify Python exception output to make it legible.
snoop - A powerful set of Python debugging tools, based on PySnooper
stackprinter - Debugging-friendly exceptions for Python
q - Quick and dirty debugging output for tired programmers. ⛺
zarr-python - An implementation of chunked, compressed, N-dimensional arrays for Python.
PySnooper - Never use print for debugging again
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
ray - Debug with Ray to fix problems faster
taskipy - the complementary task runner for python
pyset_x - Like `set -x` in bash, for Python
py_better_exchook vs python-devtools
better-exceptions vs PrettyErrors
py_better_exchook vs snoop
better-exceptions vs stackprinter
py_better_exchook vs q
better-exceptions vs zarr-python
py_better_exchook vs PySnooper
better-exceptions vs Python Fire
py_better_exchook vs ray
better-exceptions vs taskipy
py_better_exchook vs pyset_x
better-exceptions vs PySnooper