skip to navigation
skip to content

sadisplay 0.3.5dev

SqlAlchemy schema display script

Latest Version: 0.4.8


Simple package for describing SQLAlchemy schema and display raw database tables. Relation detecting by ForeignKey columns. Supports mapped class inherit. BSD licensed.

Output formats:


  • python >= 2.5
  • SQLAlchemy >= 0.5


pip install sadisplay

From bitbucket:

pip install
# or


Write simple script in your project environment:

import sadisplay
from yourapp import model

desc = sadisplay.describe([getattr(model, attr) for attr in dir(model)])
open('schema.plantuml', 'w').write(sadisplay.plantuml(desc))

# Or only part of schema
desc = sadisplay.describe([model.User, model.Group, model.Persmission])
open('auth.plantuml', 'w').write(sadisplay.plantuml(desc))

Render PlantUML class diagram:

$ java -jar plantuml.jar schema.plantuml

# or for svg format
$ java -jar plantuml.jar -Tsvg schema.plantuml

Also you can display you sql database tables by reflecting feature:

$ sadisplay -u <URL connection string to db> -r dot >
$ dot -Tpng > schema.png
File Type Py Version Uploaded on Size
sadisplay-0.3.5dev.tar.gz (md5) Source 2012-05-20 7KB