Using Pydantic's MISSING sentinel in FastAPI for PATCH endpoints
Starting with Pydantic 2.12.0, the MISSING sentinel can be used to annotate non-required, non-nullable fields, which is very useful for PATCH endpoints.
Hey! I'm Edgar Ramírez, a Chemical Engineer working on Python backend applications, data engineering and packaging.
Below is the list of all my blog posts.
Starting with Pydantic 2.12.0, the MISSING sentinel can be used to annotate non-required, non-nullable fields, which is very useful for PATCH endpoints.
This article goes through a quick example of how to use TypedDict in FastAPI for the body of a PATCH endpoint.
Introduction to linear programming and optimization with ortools.
Where I explore Ferret, a cool declarative approach to web scraping!
Bob has statues of different sizes, each statue having a non-negative integer size. He wants to arrange them so that each statue will be bigger than the previous one exactly by 1. He may need some additional statues to be able to accomplish that. Help him figure out the minimum number of additional statues needed.
Based on a Javascript challenge by @PizzaPokerGuy.