Skip to main content

Autodoc extention for documenting traits

Project description

Trait-Documenter is an autodoc extension to allow trait definitions to be properly rendered in sphinx.


Development versions can be found at

The package requires a recent version of sphinx, traits and astor to function properly.


Add the trait-documenter to the extensions variable in your



A class trait with a docstring:

from traits.api import HasTraits, Float

class MyClass(HasTraits):

    #: A float number.
    number = Float(2.0)

Will be rendered as:

.. py:attribute:: number
   :annotation: = Float(2.0)

   A float number.

Project details

Download files

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

Source Distributions (24.9 kB view hashes)

Uploaded source

trait_documenter-1.1.0.tar.gz (15.6 kB view hashes)

Uploaded source

trait_documenter-1.1.0.tar.bz2 (14.5 kB view hashes)

Uploaded source

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