Ideally test both declarative and also reflection BUT primary aim would be initially For example using https://github.com/agronholm/sqlacodegen Also see https://gtpedrosa.github.io/blog/using-sqlalchemy-to-navigate-an-existing-database/