Class diagram generator for MongoEngine document schema
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
class_diagram.py

README.md

mongoengine-diagrams

Class diagram generator for MongoEngine document schema

To use, start by editing class_diagram.py

  • specify module names in MODULES list
  • define custom object mappings in OID_MAP

Then, run class_diagrams.py <db_host> <db_name>, ensuring that all the modules in MODULES are in your pythonpath.

class_diagram produces output in Graphviz .dot format. Output is sent to stdout. You can use Graphviz to do layout and render the graph to an image, or you can import the .dot file into your favorite diagramming tool (eg. OmniGraffle)

Example diagram here, layout with Graphviz's fdp tool.