Home / Companies / Pydantic / Blog / Post Details
Content Deep Dive

Announcement: Pydantic v2 Pre Release

Blog post from Pydantic

Post Details
Company
Date Published
Author
Samuel Colvin
Word Count
1,729
Language
English
Hacker News Points
-
Summary

Pydantic V2's first alpha release marks a significant enhancement in the popular Python library used for data parsing and validation, with a key change being the integration of pydantic-core, which rewrites validation logic in Rust for improved performance and maintainability. The release, after a year's work, invites user feedback to refine API changes, with new features like strict mode, improved dataclasses, serialization, and JSON Schema generation ready for testing. While some features remain under construction, such as full documentation and BaseSettings, Pydantic V2 aims to maintain backward compatibility with deprecated method names raising warnings and encourages users to explore the new TypeAdapter class for validation without a BaseModel. Users are advised to test the alpha in non-production environments and report issues on GitHub to aid ongoing improvements, with a full migration guide still in development to assist with transitioning from Pydantic V1.