use peewee

http://peewee.readthedocs.org/en/latest/peewee/api.html#Model