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