Try using SQLACodeGen. Just point it at your database, and it'll generate all the SQLA models for you, then you can tweak it as required— it's a big time saver.
SQLAlchemy can also reflect existing tables if you prefer the discovery route at runtime.
Doobeh
- 9.5k
- 42
- 32