Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Painless Debugging and Inspection for Python

Project description

ShowMe – 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.


To use showme, simply:

pip install showme

or, if you must:

easy_install showme


Print passed-in arguments and function calls.

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.

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

>>> complex_function()
Example Documentation for complex_function


1.0.0 (2010-09-05)

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

0.0.5 (2010-09-05)

  • @showme.time support (simple but big feature)
  • Color output added (via vendorized Colorama)

0.0.4 (2010-09-04)

  • Epic @showme.trace decorator written
  • support

0.0.3 (2010-09-01)

  • General configuration in place
  • @showme.cputime support
  • Vendorization of decorator decorator

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for showme, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size showme-1.0.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page