Copyright © 2015, Brendan Doms
Licensed under the MIT license
GAE Graph DB creates network graphs of a Google App Engine datastore.
It depends on graphviz and pydot:
sudo apt-get install graphviz
pip install pydotTo use from the command line just supply the path to a model file and an output image file:
python gae_graph "path/to/model/file" "output.png"To use from a Python script, first analyze the model file to get out lists of models:
edges, inheritences, nodes = analyzeModels("path/to/model/file")Then you can write out the graph image:
writeGraph(edges, inheritences, nodes, "output.png")Additionally, writeGraph takes two optional parameters:
method- the graphviz program to use when creating the imageparent_childs- a list of tuples, e.g. [('Parent', 'Child')]
Parent child relationships must be entered manually this way because they are established at run time and therefore can't be detected automatically.