Sqlalchemy Convert Row menjadi 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}