W Sqlalchemy
query = sqlalchemy.select([actor]).where(actor.columns.first_name.in_(["PENELOPE", "JOHN", "UMA"]))
Scary Salamander
query = sqlalchemy.select([actor]).where(actor.columns.first_name.in_(["PENELOPE", "JOHN", "UMA"]))
session.query(MyUserClass).filter(MyUserClass.id.in_((123,456))).all()
session.execute(
select(
[MyUserTable.c.id, MyUserTable.c.name],
MyUserTable.c.id.in_((123, 456))
)
).fetchall()