Class diagram generator for MongoEngine document schema
Python
Latest commit 31deedd Jul 12, 2013 Russ Weeks print warnings to stderr
Permalink
Failed to load latest commit information.
README.md added link to sample output Jul 12, 2013
class_diagram.py print warnings to stderr Jul 12, 2013

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.