Every time you validate data with Pydantic v2, the data-validation library most Python apps reach for, a Rust extension does the work.
Its core, pydantic-core, is built with PyO3, the same toolchain we'll use here.
This post builds that same kind of bridge, small enough to read in one sitting: a JSON parser written in Rust, exposed to Python, so you can import it like any other package.
Unverified
Every time you validate data with Pydantic v2, the data-validation library most Python apps reach for, a Rust extension does the work.
Its core, pydantic-core, is built with PyO3, the same toolchain we'll use here.
This post builds that same kind of bridge, small enough to read in one sitting: a JSON parser written in Rust, exposed to Python, so you can import it like any other package.