Samuel Colvin has raised venture capital from investors including Sequoia to form a company around the Pydantic open-source project, with the team currently focused on releasing Pydantic V2.
Pydantic V2, rewritten in Rust, offers a significant performance boost, with benchmarks showing it to be ~22x faster than V1.
This is expected to provide a 10-20x performance improvement for FastAPI users.
The migration from Pydantic V1 to V2 is designed to be mostly transparent for common use cases, though some breaking changes exist, such as stricter type coercion (e.g., integers are no longer coerced to strings).
The Python typing system continues to evolve, with features like `typing.Annotated` being adopted by FastAPI and Pydantic to improve developer experience and enable more powerful, declarative APIs.
12 quotes
Concerns Raised
Migration from Pydantic V1 to V2 may involve subtle breaking changes for edge cases.
APIs may change behavior due to stricter type coercion in Pydantic V2 (e.g., no longer coercing integers to strings).
Opportunities Identified
Massive performance improvements (10-20x) for FastAPI and other dependent libraries.
New commercial services and products to be built around the Pydantic ecosystem.
Simplified and more elegant code in downstream libraries due to Pydantic V2's enhanced serialization.
Improved developer experience and API design through the adoption of `typing.Annotated`.