ShowMePainless Debugging and Inspection for Python | |
Download |
ShowMe Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Publisher Name:
- Kenneth Reitz
- Publisher web site:
- http://kennethreitz.com
ShowMe Tags
ShowMe Description
Painless Debugging and Inspection for Python ShowMe provides quick and easy debugging for Python.ShowMe is a simple set of extremely useful function decorators for Python. It allows you to view trace information, execution time, cputime, and function documentation.InstallationTo use showme, simply:pip install showmeor, if you must:easy_install showmeUsagePrint passed-in arguments and function calls.@showme.tracedef complex_function(a, b, c, **kwargs):>>> complex_function('alpha', 'beta', False, debug=True)calling haystack.submodule.complex_function() with args: ({'a': 'alpha', 'b': 'beta', 'c': False},) kwargs: {'debug': True}Print function execution time. @showme.cputime def complex_function(a, b, c): >>> complex_function() 3 function calls in 0.013 CPU secondsncalls tottime percall cumtime percall filename:lineno(function) 1 0.013 0.013 0.013 0.013 test_time.py:6(test) 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} 1 0.000 0.000 0.000 0.000 {range}Pretty print function documentation.@showme.docsdef complex_function(): """Example Documentation for complex_function""" pass>>> complex_function()Example Documentation for complex_function Requirements: · Python What's New in This Release: · Featureset complete · Public release of showme to PyPi · Cleanup of project (removal of globals/locals)
ShowMe Related Software