cool-RR/PySnooper
Never use print for debugging again observed · 2026-08-28
Health v2 · maintenance only
62/100
- Activity 86
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2694
- days_rel: n/a
- days_push: 86
- n_releases_24m: 0
Adoption not part of the score
16582 stars · 961 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PySnooper is a Python library that provides line-by-line execution tracing of functions via a simple decorator or context manager, logging which lines ran and how local variables changed. It acts as a lightweight alternative to full debuggers, replacing ad-hoc print statements with detailed execution logs.
Use cases
- debug python code without setting up a debugger
- replace print statement debugging with a decorator
- trace which lines of a function execute and when
- log local variable changes during function execution
- redirect execution trace output to a log file
- snoop on a specific block of code with a context manager
- watch values of expressions during debugging
When to choose
- you want quick debugging with zero setup in a large codebase
- a full debugger with breakpoints feels like overkill
- you need a play-by-play log of function execution and variable changes
When to avoid
- you need breakpoints, stepping, or interactive debugging
- tracing would produce excessive overhead in performance-critical code
- you need multi-threaded or distributed debugging features
Facets
library · maturity active
logging developer-tools developer-tools python cross-platform debugging tracing decorator poor-mans-debugger introspection python
2 sources
- readme: https://github.com/cool-RR/PySnooper · fetched 2026-08-28 · 5e832dc3a7b2
- registry_pypi: https://pypi.org/pypi/pysnooper/json · fetched 2026-08-29 · e246c76e7bd3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cool-RR/PySnooper | main | 62 |
For agents
markdown · JSON · MCP: product_card(name="cool-RR/PySnooper")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem