I love how PonyORM does this for SQL: it’s just Puthon `x for x in ... if ...`.
Of course, if you use the same syntax for Python lists of dicts, you don’t need any library at all.