PySnooper
q
Our great sponsors
PySnooper | q | |
---|---|---|
13 | 4 | |
16,239 | 1,276 | |
- | - | |
5.5 | 5.3 | |
about 2 months ago | 3 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.
PySnooper
-
Logging code mess
Definitely not for production, but for debugging (esp. in cases where interactive debugging doesn't work) I've found PySnooper very useful
- What Python debugger do you use?
- What a good debugger can do
-
Trace your Python process line by line with minimal overhead!
Looks interesting I will definitely try this.
For those that find this interesting, you might also like pysnooper - I use it all the time.
https://github.com/cool-RR/PySnooper
https://python.plainenglish.io/pysnooper-stop-debugging-pyth...
-
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
Found PySnooper the other day.
-
Top python libraries/ frameworks that you suggest every one
snoop or pysnooper
-
No more Print For Debugging In Python Anymore
If you want to install a library, pysnooper is cool. It's like an automatic print on every line of your function, with values.
-
The unreasonable effectiveness of print debugging
The Python package PySnooper is pretty good for "fancy" print debug statements: https://github.com/cool-RR/pysnooper
I've caught quite a few bugs using this show-me-all-locals() approach...
- What tool you discovered/came across that has made your development work easier?
-
Icecream: Never use print() to debug again in Python
Funny, a few months back I added this sentence to PySnooper's readme:
"PySnooper is a poor man's debugger. If you've used Bash, it's like set -x for Python, except it's fancier."
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
For an even easier-to-remember alternative, there’s q: https://github.com/zestyping/q
All you need is `import q`. q works like a function (q(x)), like a variable (q|x and q/x, so you get different operator precedences) and like a decorator (@q), so it can be used in practically any circumstance for a quick debug print. Plus, the name sounds like you’re interrogating something.
This is similar to an earlier package called "q"[0]
What are some alternatives?
icecream - 🍦 Never use print() to debug again.
snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)
snoop - A powerful set of Python debugging tools, based on PySnooper
django-modelcluster - Django extension to allow working with 'clusters' of models as a single unit, independently of the database
python-devtools - Dev tools for python
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)
locust - Write scalable load tests in plain Python 🚗💨
ray - Debug with Ray to fix problems faster
rr - Record and Replay Framework
tsv-utils - eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
django-hijack-admin - Django admin site integration for Django Hijack