Metadata-Version: 2.1
Name: sphinxcontrib-sadisplay
Version: 0.3.4.dev20210416
Summary: Sphinx "sadisplay" extension
Home-page: https://github.com/sphinx-contrib/sadisplay
Author: Evgeniy Tatarkin
Author-email: tatarkin.evg@gmail.com
License: BSD
Download-URL: http://pypi.python.org/pypi/sphinxcontrib-sadisplay
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Documentation
Classifier: Topic :: Utilities
Requires-Dist: Sphinx (>=0.6)
Requires-Dist: sadisplay

Display SqlAlchemy models
=========================

Rendering PlantUML_ diagrams or GraphViz_ directed graphs generated from
SqlALchemy models.

Most part of code based on sphinxcontrib-plantuml_ source code.

Install
-------

::

    pip install sphinxcontrib-sadisplay


Usage
-----

Add sadisplay to extensions list::

    extenstion = ['sphinxcontrib.sadisp', ]

Add options to conf.py::

    plantuml = 'java -jar plantuml.jar'.split()
    graphviz = 'dot -Tpng'.split()
    sadisplay_default_render = 'plantuml' 


Render image::

    .. sadisplay::
        :module: myapp.model.user, myapp.model.post


Render link to image (html only)::

    .. sadisplay::
        :module: myapp.model.user, myapp.model.post
        :link:
        :alt: My Schema
        :render: graphviz


.. _PlantUML: http://plantuml.sourceforge.net/
.. _GraphViz: http://www.graphviz.org/
.. _sphinxcontrib-plantuml: http://bitbucket.org/birkenfeld/sphinx-contrib


