{"categories":[{"label":"Information Analysis","url":"https://skillfed.io/packages/category/scientific-engineering-information-analysis/2"}],"enrichment":{"capability":"Patito combines pydantic models with polars DataFrames to provide type-annotated schema validation, test data generation, and object-oriented row access for dataframe operations.","skillfed_tags":["dataframe-validation","pydantic-integration","test-data-generation"],"use_cases":["Validate incoming dataframes against strict type and constraint rules before processing, catching schema violations early.","Generate valid test dataframes that satisfy all model constraints without manually creating dummy data for each test.","Retrieve and work with individual dataframe rows as typed model instances rather than raw dictionary-like objects.","Enforce a single source of truth for data models across your codebase by using the same pydantic class for both validation and ORM-like access.","Apply field-level constraints like uniqueness, bounds, regex patterns, and custom expressions to validate dataframe contents."],"what_it_does":"Patito bridges pydantic and polars by letting you define dataframe schemas as type-annotated pydantic model subclasses. A single model class serves dual purpose: it defines the schema for polars DataFrames and represents individual rows as objects. This eliminates the need to maintain separate schema definitions and row representations.\n\nThe package provides three main capabilities: efficient dataframe validation with human-readable error messages, automatic generation of valid test data that respects all schema constraints, and utilities to work with dataframes in an object-oriented manner. You can validate incoming data, generate mock dataframes for tests without boilerplate, retrieve single rows as model instances, and apply schema-aware transformations. It is designed to work with polars but also supports pandas.","worth_installing":"Yes. Patito is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem for teams using polars with pydantic. It's particularly valuable if you need strict dataframe validation and test data generation. The MIT license poses no restrictions. Start with it if your workflow involves both type-annotated models and polars dataframes."},"id":"patito","links":{"html":"https://skillfed.io/packages/patito","md":"https://skillfed.io/packages/patito.md","pypi":"https://pypi.org/project/patito/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-04","license_spdx":"MIT","license_treatment":"permissive","name":"patito","python_support":"supports_current","summary":"A dataframe modelling library built on top of polars and pydantic."},"popularity":{"monthly_downloads":594946,"position":5842,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.6"}
