One of my favorite libraries in Python in Pydantic. I love it and use it all over the place.

I regularly try to convince people to use it, and when I do that, I tend to give a presentation where I am in the IDE walking people through examples of my favorite features.

You can find the examples here.