I am working in a pyramid project and I\'ve the table in SQLAlchemy in declarative syntax
\"\"\"models.py\"\"\" class Projects(Base): __tablename__ = \'proje
Just
>>> q[0].keys()
After
row_data = session.query(Projects).filter_by(id=1).one()
Example :
>>> q = session.query(users_user.phone,users_user.first_name).filter(users_user.phone=='79267548577').limit(1).all() >>> columns_names = q[0].keys
Result :
>>> q[0].keys() ['phone', 'first_name'] >>>