3 ms·
django-ninja and fastapi does dep injection, parsing and validation based on annotations. taichi does ffi with their own dsl, cython with c. I you haven't tri
by BiteCode_dev 4y ago
django-ninja and fastapi does dep injection, parsing and validation based on annotations.
taichi does ffi with their own dsl, cython with c.
I you haven't tried pydantic or sister projects (django-ninja, fastapi and typer), this is a good place to start. They bring a breath of fresh air and are quite fun to use.
- kylebarron 4y agoSpecifically it's the underlying pydantic that does validation based on annotations https://pydantic-docs.helpmanual.io/ https://pydantic-docs.helpmanual.io/
- BiteCode_dev 4y agoIndeed. The dep injection is fastapi and typer code though, and quite tied to it. So it's worth mentioning that somebody is attempting (quite successfully from the look of it) to create a generic lib of dep injection using annotation named DI, inspired by those libs: https://github.com/adriangb/di https://github.com/adriangb/di
- LtWorf 4y agoI always find it very funny that fastapi has that name when it relies on pydantic that is one of the slowest libraries in that space :D