python-devtools
q
python-devtools | q | |
---|---|---|
5 | 4 | |
947 | 1,277 | |
- | - | |
4.7 | 5.3 | |
13 days ago | 5 months ago | |
Python | Python | |
MIT License | Apache License 2.0 |
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.
q
-
[OC]Tidy Viewer (tv) is a cross-platform csv pretty printer that uses column styling to maximize viewer enjoyment.
q - Command line csv data manipulation query-like. Python
-
The unreasonable effectiveness of print debugging
For python: i specifically recommend https://github.com/zestyping/q a lot, which is like print debugging on steroids:
All output goes to /tmp/q (or on Windows, to $HOME/tmp/q). You can watch the output with this shell command while your program is running:
-
Icecream: Never use print() to debug again in Python
This is similar to an earlier package called "q"[0]
[0] https://github.com/zestyping/q
What are some alternatives?
ray - Debug with Ray to fix problems faster
icecream - 🍦 Never use print() to debug again.
snoop - A powerful set of Python debugging tools, based on PySnooper
tsv-utils - eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
PySnooper - Never use print for debugging again
snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)
csvtk - A cross-platform, efficient and practical CSV/TSV toolkit in Golang