Python Pydantic

Open-source Python projects categorized as Pydantic

Top 23 Python Pydantic Projects

  1. langchain

    The agent engineering platform.

    Project mention: AI Agents Explained: How They Can Spend Your Money Or Email The Boss By Mistake | dev.to | 2026-11-05

    OpenAI said its Agents API hosts the harness for builders while letting them choose where the agent runs, and is built to keep agents running reliably for days. Reliability matters because the hard part is not getting one good answer. It is getting many acceptable answers over time in messy real settings. LangChain said its software helps developers connect compatible parts and outside tools when building agents and LLM apps. That is another sign of what the market has learned: agent performance depends on how well the pieces connect, not just on the model benchmark score. Also Read: CrowdStrike Lets Firms Watch Every Move Claude agents Make A useful mental model is this. The model is the brain-like part. The tools are the hands. Memory is the notebook. Guardrails are the workplace rules. The workflow is the job design. A weak setup can waste a strong model. A solid setup can make a mid-range model much more useful.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

    Project mention: My privacy feature was leaking whole words: shipping Synapse Shield v0.10.5 | dev.to | 2026-11-07
  4. langgraph

    Build resilient agents.

    Project mention: LangGraph: A Framework for Building Production-Ready AI Agents | dev.to | 2026-11-06

    LangGraph official documentation

  5. pydantic

    Data validation using Python type hints

    Project mention: 6 Practical Open-Source Libraries for LLM Guardrails and Validation | dev.to | 2026-10-29

    GitHub: Pydantic Repository

  6. pydantic-ai

    How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end.

    Project mention: Five ways Claude prompt caching quietly breaks on Amazon Bedrock | dev.to | 2026-10-12

    pydantic-ai saw the same edge in its own tests. After 10 parallel calls (21 new blocks) the next request read 6,827 tokens from cache. After 11 calls (23 blocks) it read 0 and wrote 7,534 again (pydantic/pydantic-ai#9404). A Strands user saw an 18-call turn followed by 0 tokens read and 134,082 written (strands-agents/harness-sdk#3348). The same requests on Anthropic’s own API didn’t miss, because there a run of tool calls counts as one position. Bedrock counts each one.

  7. sqlmodel

    SQL databases in Python, designed for simplicity, compatibility, and robustness.

    Project mention: Show HN: Oxyde – Pydantic-native async ORM with a Rust core | news.ycombinator.com | 2026-03-13

    This sounds great and there's a real gap in the ecosystem for a tool like this. https://sqlmodel.tiangolo.com/ looked promising but it's actually worse than useless because if you add it to your Pydantic models, it disables all validation: https://github.com/fastapi/sqlmodel/issues/52

  8. django-ninja

    💨 Fast, Async-ready, Openapi, type hints based framework for building APIs

    Project mention: Removing React.js from the codebase and adapting Htmx for UI interactivity | news.ycombinator.com | 2026-07-27

    Using Django w/ frontend frameworks has been a struggle for me. (I only dabble as a hobbyist.) I think splitting the backend off into a restful API makes the marriage work. I've looked at django-rest-framework (https://www.django-rest-framework.org/) and django-ninja (https://django-ninja.dev/). Of course,, then you're discarding a lot of batteries that come with the django framework. Perhaps using Django templates for admin / internal facing work only, and React for customer-facing sites can be a healthy compromise?

  9. litestar

    Light, flexible and extensible ASGI framework | Built to scale

  10. json_repair

    Repair malformed JSON from LLMs, APIs, logs, and user input in Python.

    Project mention: LLM JSON output: one setting dropped valid JSON from 75% to 4% | dev.to | 2026-10-17

    Where you can, skip the guessing entirely. Constrained decoding restricts each next token to ones that keep the output valid against a grammar or schema, so a reply can't be malformed by construction. That's what OpenAI's Structured Outputs, llama.cpp grammars and Outlines do. If you can't, a ladder plus a schema check plus one retry is the practical floor. For Python there's a solid open-source repair library, json_repair, that covers more cases than my five rules.

  11. logfire

    AI observability platform for production LLM and agent systems.

    Project mention: Ask HN: Who wants to be hired? (October 2026) | news.ycombinator.com | 2026-10-01

    https://github.com/pydantic/logfire/pull/1886

    Interested in the product/full-stack, backend, forward deployed engineering (fde) roles. Looking for a team where I can own problems end to end, work closely with the end-users/customers and shipping the solutions.

  12. datamodel-code-generator

    Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV.

  13. tracecat

    Open-source security automation platform for teams and AI agents

  14. vizro

    Vizro is a low-code toolkit for building high-quality data visualization apps.

  15. rocketry

    Modern scheduling library for Python

  16. opyrator

    🪄 Turns your machine learning code into microservices with web API, interactive GUI, and more.

  17. uvicorn-gunicorn-fastapi-docker

    Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python with performance auto-tuning.

  18. datachain

    The Context Layer for unstructured data: typed, versioned datasets over S3, GCS, Azure

  19. beanie

    Asynchronous Python ODM for MongoDB

  20. magentic

    Seamlessly integrate LLMs as Python functions

  21. ormar

    python async orm with fastapi in mind and pydantic validation

  22. fastcrud

    FastCRUD is a Python package for FastAPI, offering robust async CRUD operations and flexible endpoint creation utilities.

  23. polyfactory

    Simple and powerful factories for mock data generation

  24. pydantic-settings

    Settings management using pydantic

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Pydantic discussion

Log in or Post with

Python Pydantic related posts

  • Air: A Python web framework designed for AI to write

    1 project | news.ycombinator.com | 18 Oct 2026
  • Spending Limits for LangGraph Agents That a Prompt Injection Can't Talk Past

    3 projects | dev.to | 4 Oct 2026
  • Python for Agentic AI: LangGraph vs CrewAI vs MAF

    2 projects | dev.to | 30 Sep 2026
  • Stario is a philosophy of visible parts, explicit decisions, and direct tools

    1 project | news.ycombinator.com | 22 Aug 2026
  • Arrest 0.2.1, an HTTP client with data validation

    1 project | news.ycombinator.com | 5 Jul 2026
  • Stop hand-parsing LLM JSON: structured outputs with pydantic-ai

    1 project | dev.to | 20 Jun 2026
  • codify alternatives - pydantic and cattrs

    3 projects | 1 Jun 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Pydantic projects in Python? This list will help you:

# Project Stars
1 langchain 149,192
2 fastapi 104,441
3 langgraph 44,561
4 pydantic 29,384
5 pydantic-ai 21,054
6 sqlmodel 18,559
7 django-ninja 9,235
8 litestar 8,533
9 json_repair 5,132
10 logfire 4,537
11 datamodel-code-generator 4,052
12 tracecat 3,894
13 vizro 3,822
14 rocketry 3,363
15 opyrator 3,136
16 uvicorn-gunicorn-fastapi-docker 2,914
17 datachain 2,830
18 beanie 2,708
19 magentic 2,428
20 ormar 1,799
21 fastcrud 1,599
22 polyfactory 1,521
23 pydantic-settings 1,498

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

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