Show HN: Python class typing that raises TypeError at runtime(github.com)
github.com
Show HN: Python class typing that raises TypeError at runtime
https://github.com/6r17/madtypes
1 comments
What's the merit compared with pydantic or beartype?
https://github.com/6r17/madtypes
I was getting a bit sick of how I was managing structures in Python, I needed something that would trivially be translated to json, had some kind of verification, and had the ability to output a json-schema to communicate the format.
I plan to add more documentation and customization to the package in regards of schema generation and custom validation.
For python 3.9 +
I hope this will be useful ! :)