python-devtools
py_better_exchook
python-devtools | py_better_exchook | |
---|---|---|
5 | 2 | |
947 | 40 | |
- | - | |
4.7 | 5.6 | |
14 days ago | 4 months ago | |
Python | Python | |
MIT License | BSD 2-clause "Simplified" License |
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.
python-devtools
-
Your favourite "less-known" Python features?
Check out devtools, it’s even more powerful
-
What are your bad python habits?
There’s also debug() from python-devtools that is an easy improvement over print() that doesn't involve changing your workflow.
- Printstack
-
Icecream: Never use print() to debug again in Python
__builtins__['debug'] = debug
(see https://github.com/samuelcolvin/python-devtools#usage-withou...)
This would work with icecream too.
The second advantage of not needing the import is that CI fails if you forget to remove all debug() commands.
py_better_exchook
-
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
What are some alternatives?
ray - Debug with Ray to fix problems faster
better-exceptions - Pretty and useful exceptions in Python, automatically.
snoop - A powerful set of Python debugging tools, based on PySnooper
icecream - 🍦 Never use print() to debug again.
q - Quick and dirty debugging output for tired programmers. ⛺
snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)
PySnooper - Never use print for debugging again
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)
pyset_x - Like `set -x` in bash, for Python