Comparison with Pydantic #409
-
This is an awesome project! I just wanted to ask how pyserde compares with pydantic, which also provides (de)serialization and type checking. When would I use pyserde over pydantic? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, as someone who tried out both Pydantic and Pyserde I can provide a few answers. We develop for a Yocto / Bitbake project, which is a build system for building custom Linux images, mainly for embedded systems. The way Yocto builds its stuff is that it requires custom recipes for the specific target being built from sources. Precompiled packages do not work. What made us switch is that Pydantic is built on top of Rust and that was too much of a hassle to make it work because compiling Rust through a python package is not supported easily. Pyserde on the other hand is pure Python which is really easy to integrate. As for the main differences (from my limited experience):
|
Beta Was this translation helpful? Give feedback.
Hi there, as someone who tried out both Pydantic and Pyserde I can provide a few answers.
We develop for a Yocto / Bitbake project, which is a build system for building custom Linux images, mainly for embedded systems. The way Yocto builds its stuff is that it requires custom recipes for the specific target being built from sources. Precompiled packages do not work. What made us switch is that Pydantic is built on top of Rust and that was too much of a hassle to make it work because compiling Rust through a python package is not supported easily. Pyserde on the other hand is pure Python which is really easy to integrate.
As for the main differences (from my limited experience):