After a database is constructed in SQLAlchemy, I want to get all of the models, which is to say, the classes which represent them
>>> db
<SQLAlchemy engine='postgresql:///example'>
>>> ???
[<db.Model 'User'>, <db.Model 'Comment'>, <db.Model 'Article'>]
Can this be achieved? How?
I can get the tables decently, just not the models. Eg:
>>> for t in db.metadata.tables.items():
print(t)
this gives the tables just not the models themselves