sqlalchemy notin code example Example: sql alchemy or from sqlalchemy import or_ filter(or_(User.name == 'ed', User.name == 'wendy'))