Skip to main content

Sphinx extension for dirty models

Project description

Documentation Status Latest Version Supported Python versions Development Status License Download format Supported Python implementations

Dirty Models Sphinx extension

Sphinx extension for dirty models

About

Sphinx extension to help developers to write documentation of applications which use Dirty Models.

Features

  • Describe each field with real type.

  • All field types defined on Dirty Models are documented.

  • Use prefixed (doc comment using #: before field) or suffixed (Multiline doc string after field) documentation for each field.

  • Document read only fields.

  • Document default value for each field.

  • Document datetime format on those fields.

Installation

Just use pip to install it:

$ pip install dirty-models-sphinx

And add to Sphinx extensions on your project.

conf.py file:

extensions = [
    'sphinx.ext.autodoc',
    'dirty_models_sphinx'
]

Usage

Just use regular autodocumenter:

.. automodule:: models
    :members:
    :show-inheritance:

Future

Documentation

http://dirty-models-sphinx-extension.readthedocs.io

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

dirty-models-sphinx-0.2.0.tar.gz (4.9 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