Data Validation Libraries for Polars (2026 Edition)

In the middle of 2025 we published a survey of data validation libraries for Polars, comparing five Python packages that could check a Polars DataFrame against a set of expectations. A year and a half later, enough has changed to make a second look worthwhile. Polars is now at v2.2, following the v2.0 release in October 2026. All five libraries from the first survey have had new releases, and two of them have moved up a major version. Several newer libraries have also appeared, and some of them take approaches we didn’t see at all the first time around: validation through function decorators, schemas written as typing.Protocol classes, and a single schema that both validates data and generates it.


This is a companion discussion topic for the original entry at https://opensource.posit.co/blog/2026-11-30_validation-libs-2026/