Pydantic V2 rewritten in Rust is 5-50x faster than Pydantic V1

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • msgspec

    A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

  • Congratulations to the team, Pydantic is an amazing library.

    If you find JSON serialization/deserialization a bottleneck, another interesting library (with much less features) for Python is msgspec: https://github.com/jcrist/msgspec

  • shiv

    shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included.

  • Try out shiv[1], it will package up your source and depndencies into a single file, though you still require the Python interpreter to run it on the target

    [1] https://github.com/linkedin/shiv

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • sdk-python

    Temporal Python SDK

  • > Unless Pydantic is downloading all OS binaries with the package and loading the right one at runtime, this would become a "problem" as well.

    Nah, it's not that bad. I built a Rust-backed Python library used by many [0], and with setuptools-rust (maturin wasn't flexible enough at the time) and cibuildwheel and GH actions, the wheels are built/shipped with the shared libraries embedded and the end user never has to worry or even be aware of its presence.

    Pydantic has already been shipping a binary mode with an option for pure Python, so maybe they'll keep the pure Python mode around.

    0 - https://github.com/temporalio/sdk-python

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Pyserde

    1 project | news.ycombinator.com | 6 May 2024
  • pyserde: Serialization library on top of dataclasses, inspired by serde-rs

    1 project | news.ycombinator.com | 18 Nov 2023
  • Need help developing a high performance Redis ORM for Python

    2 projects | /r/Python | 23 May 2023
  • Pyserde: Serialization library on top of dataclasses, inspired by serde-rs

    1 project | news.ycombinator.com | 21 May 2023
  • Blog post: Writing Python like it’s Rust

    2 projects | /r/Python | 20 May 2023