3 ms·
It would be cool to teach the python static type checkers such as pyright and mypy to do the same validation as pydantic, marshmallow. Then you could use datac
by adsharma 6y ago
It would be cool to teach the python static type checkers such as pyright and mypy to do the same validation as pydantic, marshmallow.
Then you could use dataclasses and map them to the database via sqlalchemy.
https://github.com/adsharma/dataclasses-sql https://github.com/adsharma/dataclasses-sql
Couple of other techniques to speedup python:
* Transpile python to another language (py2many)
* Compile a large graphql like query to a single query plan in python which can be accelerated. (Fquery)
Both projects on my github.