Convert sqlalchemy row object to python dict
- by Anurag Uniyal
or a simple way to iterate over columnName, value pairs?
My version of sqlalchemy is 0.5.6
Here is the sample code where I tried using dict(row), but it throws exception , TypeError: 'User' object is not iterable
import sqlalchemy
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import…