Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Debuggers

    ShowMe 1.0.0

    Download button

    No screenshots available
    Downloads: 194  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kenneth Reitz | More programs
    MIT/X Consortium Lic... / FREE
    September 6th, 2010, 19:15 GMT [view history]
    ROOT / Programming / Debuggers

     Read user reviews (0)  Refer to a friend  Subscribe

    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.

    Installation

    To use showme, simply:

    pip install showme

    or, if you must:

    easy_install showme

    Usage

    Print passed-in arguments and function calls.

    @showme.trace
    def 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 seconds


    ncalls 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.docs
    def complex_function():
     """Example Documentation for complex_function"""
     pass

    >>> complex_function()
    Example Documentation for complex_function



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Featureset complete
    · Public release of showme to PyPi
    · Cleanup of project (removal of globals/locals)

      


    TAGS:

    Python debugging | Python inspection | Python | debugging | inspection

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM