SmartBody : Appendix 2: Python API for SmartBody

The Python API for SmartBody can be found at  the following location:

 

http://smartbody.ict.usc.edu/HTML/smartbody.html

 

At any time, an updated set of HTML pages can be generated from SmartBody by running the following commands:

from pydoc import *
d = HTMLDoc()
content = d.docmodule(sys.modules["SmartBody"])
import io
f = io.open('./smartbody.html', 'w')
f.write(unicode(content))
f.close()

This will write the documentation into a file 'smartbody.html' in the execution directory.