Loading Pydantic models from JSON without running out of memory

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

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. ZANJ

    saving complicated structures to disk without pickling

    https://github.com/mivanit/ZANJ

    You can have nested dataclasses, as well as specify custom serializers/loaders for things which aren't natively supported by json.

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. pydantic

    Data validation using Python type hints

    Pydantic author here. We have plans for an improvement to pydantic where JSON is parsed iteratively, which will make way for reading a file as we parse it. Details in https://github.com/pydantic/pydantic/issues/10032.

    Our JSON parser, jiter (https://github.com/pydantic/jiter) already supports iterative parsing, so it's "just" a matter of solving the lifetimes in pydantic-core to validate as we parse.

    This should make pydantic around 3x faster at parsing JSON and significantly reduce the memory overhead.

  4. jiter

    Fast iterable JSON parser.

    Pydantic author here. We have plans for an improvement to pydantic where JSON is parsed iteratively, which will make way for reading a file as we parse it. Details in https://github.com/pydantic/pydantic/issues/10032.

    Our JSON parser, jiter (https://github.com/pydantic/jiter) already supports iterative parsing, so it's "just" a matter of solving the lifetimes in pydantic-core to validate as we parse.

    This should make pydantic around 3x faster at parsing JSON and significantly reduce the memory overhead.

  5. remark

    A simple, in-browser, markdown-driven slideshow tool.

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

  • Getting Started with Pydantic: Type-Safe Data Models in Python

    2 projects | dev.to | 3 May 2025
  • Resumindo características da linguagem Python

    2 projects | dev.to | 3 Mar 2025
  • Show HN: PGCacheWatch

    1 project | news.ycombinator.com | 5 Mar 2024
  • Show HN: PGCacheWatch

    1 project | news.ycombinator.com | 5 Mar 2024
  • Boost Your App's Performance with PGCacheWatch for PostgreSQL

    1 project | news.ycombinator.com | 24 Feb 2024

Did you know that Python is
the 2nd most popular programming language
based on number of references?