{"repo":"salabim/ycecream","free":true,"listed":false,"github":"https://github.com/salabim/ycecream","clone":"git clone https://github.com/salabim/ycecream.git","description":"Sweeter debugging and benchmarking Python programs.","language":"Python","stars":55,"topics":["benchmarking","python","debugging","timing"],"license":"MIT","category":"dev-tools","readme_excerpt":"This package is not maintained anymore. It is now called (with slightly different functionality) peek and can be found here: https://pypi.org/project/peek-python/ https://github.com/salabim/peek https://salabim.org/peek/ ------ Introduction Do you ever use print() or log() to debug your code? If so, ycecream, or y for short, will make printing debug information a lot sweeter. And on top of that, you get some basic benchmarking functionality. Table of contents Installation Inspect variables and expressions Inspect execution Return value Debug entry and exit of function calls Benchmarking with ycecream Configuration Return a string instead of sending to output Disabling ycecream's output Speeding up disabled ycecream Using ycecream as a substitute for assert Interpreting the line number information Configuring at import time Working with multiple instances of y Test script Using ycecream in a REPL Alternative to y Alternative installation Limitations Implementation details Acknowledgement Differences with IceCream Installation Installing ycecream with pip is easy. or when you want to upgrade, Alternatively, ycecream.py can be juist copied into you current work directory from GitHub (https://github.com/salabim/ycecream). No dependencies! Inspect variables and expressions Have you ever printed variables or expressions to debug your program? If you've ever typed something like or the more thorough or (for Python = 3.8 only): then y() is here to help. With arguments, y() inspects i","default_branch":null,"files":null,"tree":[],"storefront":"/r/salabim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/salabim/ycecream/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}