Image by SneakyElbow from Pixabay

Do Not Use If-Else For Validating Data Objects In Python Anymore

Cerberus — A neat and readable way to validate attributes of a dictionary

Christopher Tao
Towards Data Science
10 min readMay 16, 2022

--

It is not common to use lots of dictionaries in our Python programs to hold data objects with attributes. One typical example will be Web Development. Suppose we are using Python to develop the backend web services, it will be…

--

--