Pydantic Isn't a Validation Library: Parsing in Python

Validation tells you if data is okay. Parsing turns it into a type the rest of your code can trust. In this video, we walk through what parsing and validation look like across OOP, ECS, and Microservices in Python. 00:00 The Boundary 00:44 Object-Oriented Programming 08:02 The Parsing Arsenal 09:48 Validation vs. Parsing 11:35 Entity-Component-System 14:09 Microservices 17:35 Practical Tips 19:33 Final Thoughts 20:03 Outro Chapters in Pip Install Series 1. Why Static Typing Matters in Python —    • Why Static Typing Matters in Python   2. Python 100% Test Coverage Trap —    • Python 100% Test Coverage Trap   3. Pydantic Isn't a Validation Library: Parsing in Python -    • Pydantic Isn't a Validation Library: Parsi...   Pip Install Series —    • Pip Install Series   Python Before Production —    • Python Before Production   Code Samples — https://github.com/PythonInProduction... Validation & Parsing Libraries Pydantic — https://docs.pydantic.dev/ attrs — https://www.attrs.org/ pandera — https://pandera.readthedocs.io/ BeautifulSoup4 — https://www.crummy.com/software/Beaut... Python Standard Library NewType — https://docs.python.org/3/library/typ... NamedTuple — https://docs.python.org/3/library/typ... TypedDict — https://docs.python.org/3/library/typ... Annotated — https://docs.python.org/3/library/typ... dataclasses — https://docs.python.org/3/library/dat... Descriptor HOWTO — https://docs.python.org/3/howto/descr... Web & LLM Frameworks FastAPI — https://fastapi.tiangolo.com/ LangChain — https://python.langchain.com/ HTTP Tools httpx — https://www.python-httpx.org/ curl — https://curl.se/ Postman — https://www.postman.com/ Software Architecture Object-Oriented Programming — https://en.wikipedia.org/wiki/Object-... Entity Component System — https://en.wikipedia.org/wiki/Entity_... Microservices — https://en.wikipedia.org/wiki/Microse... Standards & Specifications NIST SP 800-207 – Zero Trust Architecture — https://csrc.nist.gov/pubs/sp/800/207... RFC 7519 – JSON Web Token (JWT) — https://datatracker.ietf.org/doc/html... OpenAPI Specification — https://spec.openapis.org/oas/latest.... JSON Schema — https://json-schema.org/ Apache Avro — https://avro.apache.org/ Protocol Buffers — https://protobuf.dev/ Articles & Talks Parse, don't validate — Alexis King (2019) — https://lexi-lambda.github.io/blog/20... Pydantic Issue 578 – "Pydantic is not a validation library, it's a parsing library" — https://github.com/pydantic/pydantic/... The Big OOPs: Anatomy of a Thirty-five-year Mistake — Casey Muratori —    • Casey Muratori – The Big OOPs: Anatomy of ...   Python PEPs PEP 484 – Type Hints — https://peps.python.org/pep-0484/ PEP 593 – Flexible function and variable annotations — https://peps.python.org/pep-0593/ PEP 695 – Type Parameter Syntax — https://peps.python.org/pep-0695/ #python #parsing #validation #objectorientedprogramming #pydantic #typing #testing #dataclasses #fastapi #langchain #entitycomponentsystem #microservices #pythontutorial #programming #datascience #softwareengineering