pydantic_core
Core functionality for Pydantic validation and serialization
Install
pydantic-core on PyPI
pip
pip install pydantic-coreuv
uv add pydantic-corepoetry
poetry add pydantic-corePackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pydantic_core-2.48.0-cp310-cp310-macosx_10_12_x86_64.whl; pydantic_core-2.48.0-cp310-cp310-macosx_11_0_arm64.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_31_riscv64.whl; pydantic_core-2.48.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; pydantic_core-2.48.0-cp310-cp310-musllinux_1_1_aarch64.whl; pydantic_core-2.48.0-cp310-cp310-musllinux_1_1_armv7l.whl; pydantic_core-2.48.0-cp310-cp310-musllinux_1_1_x86_64.whl; pydantic_core-2.48.0-cp310-cp310-win32.whl; pydantic_core-2.48.0-cp310-cp310-win_amd64.whl; pydantic_core-2.48.0-cp311-cp311-macosx_10_12_x86_64.whl; pydantic_core-2.48.0-cp311-cp311-macosx_11_0_arm64.whl; pydantic_core-2.48.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pydantic_core-2.48.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; pydantic_core-2.48.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; pydantic_core-2.48.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
About pydantic_core
from the package's own PyPI description — quoted content, verbatim
pydantic-core
CI (image) Coverage (image) pypi (image) versions (image) license (image)
This package provides the core functionality for pydantic validation and serialization.
Pydantic-core is currently around 17x faster than pydantic V1.
See 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 =...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
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.
Medium install friction due to compiled Rust components; wheels are pre-built for Python 3.10–3.14 across Linux, macOS, and Windows architectures. Actively maintained with a release 7 days ago and strong upstream integration.
MIT license permits unrestricted commercial and private use, modification, and distribution with minimal obligations—only requiring license and copyright notice retention.
Usage
from pydantic_core import SchemaValidator, ValidationError
v = SchemaValidator({
'type': 'typed-dict',
'fields': {
'name': {'type': 'typed-dict-field', 'schema': {'type': 'str'}},
'age': {'type': 'typed-dict-field', 'schema': {'type': 'int', 'ge': 18}}
}
})
result = v.validate_python({'name': 'Samuel', 'age': 35})
Requires Python ≥3.10; Rust toolchain needed only for development builds from source.
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.
Needs verification
- Whether the 17x speed claim versus Pydantic V1 holds for typical application workloads beyond micro-benchmarks.
- Stability guarantees given the 'Alpha' development status classifier despite active maintenance and wide adoption.
Similar packages
permissive · top 1,000 on PyPI
logfirepermissive · top 1,000 on PyPI
typing-inspectionpermissive · top 100 on PyPI
pydanticpermissive · top 100 on PyPI
msgspecpermissive · top 1,000 on PyPI
cramjampermissive · top 1,000 on PyPI
prekpermissive · top 1,000 on PyPI
pydantic-ai-slimpermissive · top 1,000 on PyPI
pre-commitpermissive · top 1,000 on PyPI
cfn-lintpermissive · top 1,000 on PyPI