Skip to main content

API doc generator.

Project description

pydoctor
========

.. image:: https://travis-ci.org/twisted/pydoctor.svg?branch=tox-travis-2
:target: https://travis-ci.org/twisted/pydoctor

This is 'pydoctor', an API documentation generator that works by
static analysis.

It was written primarily to replace epydoc for the purposes of the
Twisted project as epydoc has difficulties with zope.interface. If it
happens to work for your code too, that's a nice bonus :)

pydoctor puts a fair bit of effort into resolving imports and
computing inheritance hierarchies and, as it aims at documenting
Twisted, knows about zope.interface's declaration API and can present
information about which classes implement which interface, and vice
versa.

The default HTML generator requires Twisted.

There are some more notes in the doc/ subdirectory.


Sphinx Integration
------------------

HTML generator will also generate a Sphinx objects inventory using the
following mapping:

* packages, modules -> py:mod:
* classes -> py:class:
* functions -> py:func:
* methods -> py:meth:
* attributes -> py:attr:

Configure Sphinx intersphinx extension:

intersphinx_mapping = {
'pydoctor': ('http://domain.tld/api', None),
}

Use external references::

:py:func:`External API <pydoctor:pydoctor.model.Documentable.reparent>`

:py:mod:`pydoctor:pydoctor`
:py:mod:`pydoctor:pydoctor.model`
:py:func:`pydoctor:pydoctor.driver.getparser`
:py:class:`pydoctor:pydoctor.model.Documentable`
:py:meth:`pydoctor:pydoctor.model.Documentable.reparent`
:py:attr:`pydoctor:pydoctor.model.Documentable.kind`

It can link to external API documentation using Sphinx objects inventory using
the following cumulative configuration option::

--intersphinx=http://sphinx-doc.org/objects.inv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydoctor-15.1.0.tar.gz (105.8 kB view details)

Uploaded Source

Built Distribution

pydoctor-15.1.0-py2-none-any.whl (166.8 kB view details)

Uploaded Python 2

File details

Details for the file pydoctor-15.1.0.tar.gz.

File metadata

  • Download URL: pydoctor-15.1.0.tar.gz
  • Upload date:
  • Size: 105.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydoctor-15.1.0.tar.gz
Algorithm Hash digest
SHA256 4d7f639650d6726ea1b883263439f9c98fe9c0aef1e68352609d43ac8f423895
MD5 cb83419a76583d57898f8597f160151f
BLAKE2b-256 21f03fb862039d5c9ecdc051fb2e0ef9bd348549fc857a454214127d711b2c3a

See more details on using hashes here.

File details

Details for the file pydoctor-15.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for pydoctor-15.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 5fd353e0409fbcf4e99640b3749057539040392bad7d66b51ffa51067be561a4
MD5 b6be0a074e28f60fa21b4662194acfa3
BLAKE2b-256 9bb3fdca4e37392aa8e139b5e060f15d2ba56fca79875ae91dce5b5826c37797

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page