def get_pydoc_html(module):
 doc = pydoc.HTMLDoc()
 output = doc.docmodule(module)
 loc = (doc.getdocloc(pydoc_mod) or '')
 if loc:
  loc = (('<br><a href="' + loc) + '">Module Docs</a>')
 return (output.strip(), loc)

def get_pydoc_html ( module ) : doc = pydoc . HTMLDoc ( ) output = doc . docmodule ( module ) loc = ( doc . getdocloc ( pydoc_mod ) or '' ) if loc : loc = ( ( '<br><a href="' + loc ) + '">Module Docs</a>' ) return ( output . strip ( ) , loc )
returns pydoc generated output as html .