Pydantic series
The focus in this blog is on validation, as well as being able to return the same output as we got the input. Which is a json format. As an example, when parsing an IP address as a string, the output value should be a string again and not an ipaddress object. Or the MAC address which needs to retain a certain format.
The "bonus" of also dumping it back into json, is that a diff can be done between the original and the output to see if anything was changed or missed.
This is based on a series that I did on LinkedIn.