Show HN: Python class typing that raises TypeError at runtime

https://github.com/6r17/madtypes
by 6r17 • 3 years ago
2 1 3 years ago

Hi HN !

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 ! :)

Related Stories

Loading related stories...

Source preview

github.com