SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Python Validation Projects
-
Project mention: pydantic VS ctxure - a user suggested alternative | libhunt.com/r/pydantic | 2026-06-05
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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.
-
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 -
Project mention: Framework de Tests Automatisés API avec Pytest: Tutoriel Pratique | dev.to | 2026-05-22
-
-
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 -
-
-
-
-
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.
-
Deal
🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
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/
-
-
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).
-
-
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?
-
-
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.
-
-
-
-
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!
-
openapi-schema-validator
OpenAPI schema validator is a Python library that validates schema against OpenAPI Schema Specification v3.0 and v3.1
Python Validation discussion
Python Validation related posts
-
Automatically Validate Python Packages
-
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
-
Pydantic vs msgspec vs validatedata: Why Your Validation Library Slows Down on Bad Data
-
Fortifying LLM Applications: Robust Guardrails for AI Outputs in Python
-
A note from our sponsor - SaaSHub
www.saashub.com | 14 Jul 2026
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 |