Python Validation

Open-source Python projects categorized as Validation

Top 23 Python Validation Projects

  1. pydantic

    Data validation using Python type hints

    Project mention: pydantic VS ctxure - a user suggested alternative | libhunt.com/r/pydantic | 2026-06-05
  2. SaaSHub

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

    SaaSHub logo
  3. instructor

    structured outputs for llms

    Project mention: Setting you up to fail | dev.to | 2026-07-11

    Well, how about counting letters in words or asking for words with 5 letters or painting any picture with text in it. It's really easy to see that LLMs are not precise. If they were precise you wouldn't need instructor, because yes, following instructions to the letter is also about precision. I think anyone working with LLMs for more than a few minutes knows that precision isn't a trait that can be attributed to LLMs.

  4. marshmallow

    A lightweight library for converting complex objects to and from simple Python datatypes.

    Project mention: marshmallow VS ctxure - a user suggested alternative | libhunt.com/r/marshmallow | 2026-06-05
  5. jsonschema

    An implementation of the JSON Schema specification for Python

    Project mention: Framework de Tests Automatisés API avec Pytest: Tutoriel Pratique | dev.to | 2026-05-22
  6. pandera

    A light-weight, flexible, and expressive statistical data testing library

  7. msgspec

    A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML (by msgspec)

    Project mention: msgspec VS ctxure - a user suggested alternative | libhunt.com/r/msgspec/msgspec | 2026-06-05
  8. Schematics

    Python Data Structures for Humans™.

  9. strictyaml

    Type-safe YAML parser and validator.

    Project mention: YAML? That's Norway Problem | news.ycombinator.com | 2026-05-22
  10. WTForms

    A flexible forms validation and rendering library for Python.

  11. python-email-validator

    A robust email syntax and deliverability validation library for Python.

  12. webargs

    A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.

  13. Deal

    🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.

    Project mention: Test, Don't (Just) Verify | news.ycombinator.com | 2025-12-23

    I wonder if Design by Contract or schema-first design might take off as a way of structuring AI output and allowing it to rapidly iterate toward goals. I'm starting to try these methods out for myself with AI to see where they lead. Looking into https://deal.readthedocs.io/

  14. enforce

    Python 3.5+ runtime type checking for integration testing and data validation

  15. fastopenapi

    FastOpenAPI is a library for generating and integrating OpenAPI schemas using Pydantic v2 and various frameworks (AioHttp, Django, Falcon, Flask, Quart, Sanic, Starlette, Tornado).

  16. colander

    A serialization/deserialization/validation library for strings, mappings and lists.

  17. flask-pydantic

    flask extension for integration with the awesome pydantic package

    Project mention: Hyperflask – Full stack Flask and Htmx framework | news.ycombinator.com | 2025-10-16

    flask-openapi3 looks good but has only 246 stars. Would be worried using it in production. flask-pydantic has no openapi tie-in. Oh look, there's me bumping the openapi request that's been an issue since 2020: https://github.com/pallets-eco/flask-pydantic/issues/17 which has an open PR since 2022.

    It's possible between Quart and svcs (for DI) and some Pydantic/Marshmallow/OpenAPI extension you might be able to mimic what FastAPI does. But I'd just use FastAPI. I use async too. It's a lot easier to scale in my opinion.

    Do none of these pieces matter to you? Like do you not do any data validation or care about OpenAPI?

  18. pydantic-to-typescript

    CLI Tool for converting pydantic models into typescript definitions

  19. openapi-spec-validator

    OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.

  20. apischema

    JSON (de)serialization, GraphQL and JSON schema generation using Python typing.

  21. phantom-types

    Phantom types for Python.

  22. aiohttp-apispec

    Build and document REST APIs with aiohttp and apispec

  23. koda-validate

    Typesafe, Composable Validation

    Project mention: Ask HN: What Are You Working On? (September 2025) | news.ycombinator.com | 2025-09-29

    Updating my validation library for python, koda-validate (https://github.com/keithasaurus/koda-validate).

    Focusing on ergonomics improvements. Just released an improvement to the __repr__ for Invalid types.

    Potentially working on expanding the ability to generate validators from arbitrary typehints, ie `get_typehint_validator(list[str | int])`. It has good coverage, but I suspect I'm blind to some obvious holes. Would love feedback!

  24. openapi-schema-validator

    OpenAPI schema validator is a Python library that validates schema against OpenAPI Schema Specification v3.0 and v3.1

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 Validation discussion

Log in or Post with

Python Validation related posts

  • Automatically Validate Python Packages

    1 project | news.ycombinator.com | 17 Jun 2026
  • marshmallow VS ctxure - a user suggested alternative

    2 projects | 5 Jun 2026
  • pydantic VS ctxure - a user suggested alternative

    2 projects | 5 Jun 2026
  • msgspec VS ctxure - a user suggested alternative

    2 projects | 5 Jun 2026
  • Framework de Tests Automatisés API avec Pytest: Tutoriel Pratique

    1 project | dev.to | 22 May 2026
  • Pydantic vs msgspec vs validatedata: Why Your Validation Library Slows Down on Bad Data

    1 project | dev.to | 11 May 2026
  • Fortifying LLM Applications: Robust Guardrails for AI Outputs in Python

    1 project | dev.to | 18 Mar 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jul 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 pydantic 28,252
2 instructor 13,492
3 marshmallow 7,246
4 jsonschema 4,962
5 pandera 4,403
6 msgspec 3,853
7 Schematics 2,590
8 strictyaml 1,616
9 WTForms 1,577
10 python-email-validator 1,417
11 webargs 1,406
12 Deal 901
13 enforce 551
14 fastopenapi 505
15 colander 463
16 flask-pydantic 436
17 pydantic-to-typescript 430
18 openapi-spec-validator 407
19 apischema 240
20 phantom-types 234
21 aiohttp-apispec 227
22 koda-validate 126
23 openapi-schema-validator 125

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