Python library for automatic object validation and serialization