Generating API documentation as a textfile

S

Samuel

Does anyone know an easy way to extract the API documentation that is
embedded into a Python file as a text file?

-Samuel
 
G

Giampaolo Rodola'

Does anyone know an easy way to extract the API documentation that is
embedded into a Python file as a text file?

-Samuel

Something like this?

print >> open('file.txt', 'w'), dir.__doc__
 
S

Samuel

dir.__doc__

This contains only the docstring one object (module, class,
function, ...). I was thinking more of the complete API documentation
that can be found in a file, and formatted in a readable way.

-Samuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top