views:

2735

answers:

6

Hi,

I'm looking for a documentation generator for python. I'm familiar with javadoc, and I tried Doxygen, but it seems quite unfit and counter-intuitive for python.

Any ideas?

Udi

EDIT Apart from the excellent answers below, you can also consult wikipedia's exhaustive Comparison of documentation generators.

+10  A: 

Have a look at Sphinx. There are quite a number of users, including Python itself.

SilentGhost
+1  A: 

what about sphinx? It is a tool that makes it easy to create intelligent and beautiful documentation
And Expert Python Programming include a chapter(chap 10) for Documenting Your Project

sunqiang
+2  A: 

I use Pydoc (http://docs.python.org/library/pydoc.html) to generate all the documentation for my python code

AutomatedTester
+20  A: 

The classic tool for API doc is epydoc. It handles javadoc, docstrings, etc... But I find API docs tools to be quite poor. I much prefer tool which focus around the documentation itself, and enables to inject additional documentation extracted from the code. Sphinx is perfect for this job. It can generates html and pdf, you can include automatically extracted docstring from code, it does syntax highlighting, etc... A strong point of sphinx is that it is done by someone who knows something about web design, and does not look like a**. matplotlib website and doc is generated entirely from sphinx, with default values. It looks much nicer than anything you will get with epydoc/doxygen. And there is an integrated search engine in javascript

David Cournapeau
Impressive. thanks! I'll try to install it.
Adam Matan
A: 

I have to second @SilentGhost—Sphinx is really the nicest option. If, for some reason, Sphinx doesn't fit your needs, epydoc might be the closest thing to JavaDoc for Python.

Hank Gay
A: 

What about NaturalDocs? ? I never used ND with python, but it does have some basic support.

The best thing on ND is that you can easily mix code docs with hand written, separate the docs in many separated files and have everything beautifully organized and searchable (without any server side code, just javascript).

Frangossauro
interesting concept - I'll download and try it. Thanks!
Adam Matan