def scalar(self, clause, params=None, mapper=None, bind=None, **kw):

        return self.execute(
            clause, params=params, mapper=mapper, bind=bind, **kw).scalar()
Like :meth:`~.Session.execute` but return a scalar result.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/session.py/Session.scalar