| 1 |
Frequently Asked Questions |
| 2 |
========================== |
| 3 |
|
| 4 |
|
| 5 |
Why? |
| 6 |
---- |
| 7 |
|
| 8 |
``pydoctor`` was written to be used by the `Twisted project <http://twistedmatrix.com>`_ which was |
| 9 |
using `epydoc <http://epydoc.sourceforge.net/>`_ but was becoming increasingly unhappy with it for various reasons. |
| 10 |
In addition, development on Epydoc seemed to have halted. |
| 11 |
|
| 12 |
The needs of the Twisted project are still the main driving force for ``pydoctor``'s |
| 13 |
development, but it is getting to the point where there's some chance that it is |
| 14 |
useful for your project too. |
| 15 |
|
| 16 |
|
| 17 |
Who wrote ``pydoctor``? |
| 18 |
------------------------ |
| 19 |
|
| 20 |
Michael "mwhudson" Hudson, PyPy, Launchpad and sometimes |
| 21 |
Twisted hacker, with help from Christopher "radix" Armstrong |
| 22 |
and Jonathan "jml" Lange and advice and ideas from many |
| 23 |
people who hang out in #twisted on freenode. |
| 24 |
|
| 25 |
More recently, Maarten ter Huurne ("mth"), took the lead. |
| 26 |
Always backed with `numerous contributors <https://github.com/twisted/pydoctor/graphs/contributors>`_. |
| 27 |
|
| 28 |
|
| 29 |
Why would I use it? |
| 30 |
------------------- |
| 31 |
|
| 32 |
``pydoctor`` is probably best suited to documenting a library that have some degree of internal subclassing. |
| 33 |
|
| 34 |
It also has support for `zope.interface <https://zopeinterface.readthedocs.io/en/latest/>`_, and can recognize interfaces and classes which implement such interfaces. |
| 35 |
|
| 36 |
|
| 37 |
How is it different from ``sphinx-autodoc`` |
| 38 |
------------------------------------------- |
| 39 |
``sphinx-autodoc`` operates semi-automatic rather than fully automatically. It can not generate documentation solely from Python source files; it always requires a reStructuredText file as well. |
| 40 |
It can also be complex and the output is sometimes overwhelming, ``pydoctor`` will generate |
| 41 |
one page per class, module and package, it tries to keeps it simple and present information in a efficient way with tables. |
| 42 |
|
| 43 |
Sphinx narrative documentation can seamlessly link to API documentation formatted by pydoctor. |
| 44 |
Please refer to the `Sphinx Integration <sphinx-integration.html>`_ section for details. |
| 45 |
|
| 46 |
|
| 47 |
What does the output look like? |
| 48 |
------------------------------- |
| 49 |
|
| 50 |
It looks `like this <http://twistedmatrix.com/documents/current/api/>`_, which is the Twisted API documentation. |
| 51 |
|
| 52 |
The output is reasonably simple. |
| 53 |
|
| 54 |
Who is using ``pydoctor``? |
| 55 |
-------------------------- |
| 56 |
|
| 57 |
Here are some projects using ``pydoctor``: |
| 58 |
- `Twisted <https://twistedmatrix.com/trac/>`_ |
| 59 |
- `Incremental <https://github.com/twisted/incremental>`_ |
| 60 |
- `OTFBot <https://otfbot.org/start>`_ |
| 61 |
- `python-igraph <https://igraph.org/python/>`_ |
| 62 |
- `Wokkel <https://github.com/ralphm/wokkel>`_ |
| 63 |
- `msiempy <https://github.com/mfesiem/msiempy>`_ |
| 64 |
- `git-buildpackage <https://github.com/agx/git-buildpackage>`_ |
| 65 |
- `pycma <https://github.com/CMA-ES/pycma>`_ |
| 66 |
- `cocopp <https://github.com/numbbo/coco>`_ |
| 67 |
- `python-Wappalyzer <https://github.com/chorsley/python-Wappalyzer>`_ |
| 68 |
- and others |
| 69 |
|
| 70 |
|
| 71 |
How do I use it? |
| 72 |
---------------- |
| 73 |
|
| 74 |
Please review the `Quick Start <quickstart.html>`_ section. |