def helpModule(module):
 t = module.split('.')
 importName = ((('from ' + '.'.join(t[:(-1)])) + ' import ') + t[(-1)])
 exec importName
 moduleName = t[(-1)]
 functions = [locals()[moduleName].__dict__.get(a) for a in dir(locals()[moduleName]) if isinstance(locals()[moduleName].__dict__.get(a), types.FunctionType)]
 for function in functions:
  base = function.func_doc
  base = base.replace(' DCTB ', ' ')
  doc = ''.join(base.split('\n\n')[0].strip().split('\n'))
  print helpers.formatLong(function.func_name, doc)

def helpModule ( module ) : t = module . split ( '.' ) importName = ( ( ( 'from ' + '.' . join ( t [ : ( - 1 ) ] ) ) + ' import ' ) + t [ ( - 1 ) ] ) exec importName moduleName = t [ ( - 1 ) ] functions = [ locals ( ) [ moduleName ] . __dict__ . get ( a ) for a in dir ( locals ( ) [ moduleName ] ) if isinstance ( locals ( ) [ moduleName ] . __dict__ . get ( a ) , types . FunctionType ) ] for function in functions : base = function . func_doc base = base . replace ( ' DCTB ' , ' ' ) doc = '' . join ( base . split ( '\n\n' ) [ 0 ] . strip ( ) . split ( '\n' ) ) print helpers . formatLong ( function . func_name , doc )
print the first text chunk for each established method in a module .