3 ms·
What's the difference from fastAPI? https://fastapi.tiangolo.com/ https://fastapi.tiangolo.com/
by j88439h84 7y ago
What's the difference from fastAPI? https://fastapi.tiangolo.com/ https://fastapi.tiangolo.com/
- hultner 7y agoFastAPI generates specs from code, this generates code from specs
- BerislavLopac 7y agoJust a bit of clarification: Pyotr does not generate any code, it uses the spec as configuration to construct the necessary routes at the app initialization, as well as to validate requests and responses.
- hultner 7y agoYeah didn't mean literary code generation, Python's dynamic nature makes such steps unnecessary. In a way it feels kinda lispy (in a good way) to me, data is code, small DSL for working more efficiently with specific domain.