title: Python script to read the database tables and relation to create dot file
body: <p>Hi I am new to dot file concept,</p>
  
  <p>I am looking create ERD diagram with Primary keys and relationships. The approach is to whip up a Python script to read the database tables and to create a "dot" file which can then be used to generate the graphic using graphviz. I found the way to generate graph using dot file on graphviv.org, however I didn't found the way to use Python script to read the database tables and to create a "dot" file. Any help would really appreciate, thanks.</p>