{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"Internet","url":"https://skillfed.io/packages/category/internet/2"}],"enrichment":{"capability":"Provides a `debug()` function that prints variables with their names, types, and values in a readable format, replacing ad-hoc print statements during development.","skillfed_tags":["debugging","repl-friendly","dev-tools"],"use_cases":["Inspect variable state during development without writing repetitive print statements.","Debug complex nested data structures with automatic pretty-printing and syntax highlighting.","Add file and line number context to debug output for faster location of statements in source code.","Temporarily replace print statements in scripts and notebooks while maintaining readable output.","Explore generator and iterator contents inline during interactive development."],"what_it_does":"devtools is a debugging utility that replaces bare print statements with a smarter `debug()` function. When you call `debug(variable)`, it outputs the variable name, its value, and its type in a formatted, readable way\u2014including the file and line number where the call was made. It handles complex nested structures (dicts, lists, numpy arrays, generators) with intelligent formatting and syntax highlighting via pygments.\n\nThe package works by introspecting the call stack via asttokens and executing to extract the variable name from your source code, so you get both the name and the value without repeating yourself. It can also be injected into Python's `__builtins__` to make `debug()` available globally without an import.","worth_installing":"Yes, if you spend time debugging Python code interactively or in development. It's a low-friction, zero-security-risk utility that genuinely saves keystrokes and improves readability of debug output. The dormant maintenance is not a blocker\u2014the package is stable and has no known vulnerabilities\u2014but compatibility with Python versions beyond 3.11 is unverified."},"id":"devtools","links":{"html":"https://skillfed.io/packages/devtools","md":"https://skillfed.io/packages/devtools.md","pypi":"https://pypi.org/project/devtools/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-09-03","license_spdx":null,"license_treatment":"permissive","name":"devtools","python_support":"supports_current","summary":"Python's missing debug print command, and more."},"popularity":{"monthly_downloads":2853323,"position":2859,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.12.2"}
