pyset_x
python-devtools
pyset_x | python-devtools | |
---|---|---|
1 | 5 | |
0 | 947 | |
- | - | |
2.6 | 4.7 | |
over 3 years ago | 16 days ago | |
Python | Python | |
MIT License | MIT 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.
pyset_x
-
Icecream: Never use print() to debug again in Python
I started writing a very-alpha related tool, https://github.com/czinck/pyset_x. As the name implies, it's like `set -x` in bash, in that it prints every line as it executes. It's more useful for situations where you have some complicated control flow and it's not working exactly how you expect.
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.
What are some alternatives?
q - Quick and dirty debugging output for tired programmers. ⛺
ray - Debug with Ray to fix problems faster
snoop - A powerful set of Python debugging tools, based on PySnooper
PySnooper - Never use print for debugging again
icecream - 🍦 Never use print() to debug again.
py_better_exchook - nice Python exception hook replacement
snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)
panopticon - Python tracing module to visualize code execution.
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)