SQLALCHEMY CONWER ROW na DICT

row2dict = lambda r: {c.name: str(getattr(r, c.name)) for c in r.__table__.columns}
Aditya Rathore