import cgi import cgitb; cgitb.enable() write = cgi.sys.stdout.write write('Content-Type: text/html\n\n') form = cgi.FieldStorage() module = form.getfirst('m') write(' %s ' % module) try: mod = __import__(module) except: write(' Could not import module named %s

Usage: http://%s%s?m=moduleName
' % (module, cgi.os.environ['server_name'], cgi.os.environ['script_name'])) cgi.sys.exit() write('') write('' % module) for attr in dir(mod): try: write(''' ''' % (attr, getattr(mod, attr).__doc__.replace('\n','
'))) except: pass write('

Python %s module attributes and their doc strings

%s %s
')