You can try something like this:
from pydoc import * import io d = HTMLDoc() content = d.docmodule(sys.modules["mymodule"]) f = io.open('./out.html', 'w') f.write(unicode(content)) f.close()
You now have an HTML file containing pydoc information. The next trick is to turn it into Confluence so that it looks beautiful. I still tried to import it into Microsoft Word as .rtf and then cut-paste into Confluence.
source share