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