I have:
res = db.engine.execute(\'select count(id) from sometable\')
The returned object is sqlalchemy.engine.result.ResultProxy
sqlalchemy.engine.result.ResultProxy
what you are asking for called unpacking, ResultProxy is an iterable, so we can do
ResultProxy
# there will be single record record, = db.engine.execute('select count(id) from sometable') # this record consist of single value count, = record