--- id: pydantic-core version: "2.48.0" license: MIT license_treatment: permissive maintenance: active --- # pydantic_core — Core functionality for Pydantic validation and serialization License: permissive · Maintenance: active · Popularity: top 100 on PyPI ## Install pip install pydantic-core uv add pydantic-core poetry add pydantic-core ## Description # pydantic-core [![CI](https://github.com/pydantic/pydantic-core/workflows/ci/badge.svg?event=push)](https://github.com/pydantic/pydantic-core/actions?query=event%3Apush+branch%3Amain+workflow%3Aci) [![Coverage](https://codecov.io/gh/pydantic/pydantic-core/branch/main/graph/badge.svg)](https://codecov.io/gh/pydantic/pydantic-core) [![pypi](https://img.shields.io/pypi/v/pydantic-core.svg)](https://pypi.python.org/pypi/pydantic-core) [![versions](https://img.shields.io/pypi/pyversions/pydantic-core.svg)](https://github.com/pydantic/pydantic-core) [![license](https://img.shields.io/github/license/pydantic/pydantic-core.svg)](https://github.com/pydantic/pydantic-core/blob/main/LICENSE) This package provides the core functionality for [pydantic](https://pydantic.dev/docs/validation/latest/get-started/) validation and serialization. Pydantic-core is currently around 17x faster than pydantic V1. See [`tests/benchmarks/`](./tests/benchmarks/) for details. ## Example of direct usage *NOTE: You should not need to use pydantic-core directly; instead, use pydantic, which in turn uses pydantic-core.* ```py from pydantic_core import SchemaValidator, ValidationError v =... ## AI interpretation — verify before relying pydantic-core provides the high-performance validation and serialization engine underlying Pydantic, handling schema-based data validation for Python objects and JSON with ~17x speed improvement over Pydantic V1. Verdict: pydantic-core is a mature, actively maintained validation engine in the top 100 PyPI packages with no known vulnerabilities, permissive MIT licensing, and pre-built wheels minimizing install friction. Direct use is discouraged in favor of the higher-level Pydantic API, but it is production-ready for those needing raw validation performance. [View on SkillFed](https://skillfed.io/packages/pydantic-core) · [View on PyPI](https://pypi.org/project/pydantic-core/)