Sphinx extension for dirty models
Project description
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
Document Dirty Validators.
Document basic validations.
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for dirty-models-sphinx-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37afe966a29968a43bfa466b9d42bf93648a4f698f3bd79a34c9a47c181c5a4d |
|
MD5 | a39771985c4b6a489fb803961b929d91 |
|
BLAKE2b-256 | 9881ff8753f16269c1ede8ebd712c6ce30138b90f3bac103d0035fd30cff49c3 |