pydantic

    pydantic/pydantic

    Data validation using Python type hints

    29.5K stars
    3.2K forks
    181 GitHub watchers
    Updated Nov 13, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 7 days ago, with 458 contributors on GitHub.

    Use Cases & Benefits

    • Validates and parses data using Python type hints to ensure data integrity and correctness.
    • Offers fast, extensible validation with seamless integration into Python 3.9+ type systems and IDE tooling.
    • Use for defining and validating complex data models in Python applications with automatic type coercion.
    • Use for generating JSON schemas from Python models to document and enforce API contracts.
    • Use for incrementally upgrading legacy Python codebases to type-safe data validation with minimal disruption.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Data validation using Python type hints.

    Fast and extensible, Pydantic plays nicely with your linters/IDE/brain. Define how data should be in pure, canonical Python 3.9+; validate it with Pydantic.

    We've recently launched Pydantic Logfire to help you monitor your applications. Learn more

    Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.

    If you're using Pydantic V1 you may want to look at the pydantic V1.10 Documentation or, 1.10.X-fixes git branch. Pydantic V2 also ships with the latest version of Pydantic V1 built in so that you can incrementally upgrade your code base and projects: from pydantic import v1 as pydantic_v1.

    Excerpt from the pydantic/pydantic README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Nov 7: +37

    +860 stars over 78 days across 8 snapshot days; best day +37 on Nov 7.

    Forks

    3.2K+262

    Open issues

    605+22

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    pydantic/pydantic compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills194.6K+5.8K15—
    openai/codex-security13.5K+1.9K602 days ago
    tailscale/tailcat9.8K+1.3K5756 days ago
    google/skills24.1K+1.2K41—
    DuarteSantos8/openGym21.4K+1.2K40today
    pydantic/pydantic29.5K—607 days ago
    Category median21.4K+1.3K41—

    Also by pydantic

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description