Please don't. Flask-SQLAlchemy is explicitly built for Flask. These models are designed around SQLAlchemy.