4 ms·
Huge FastAPI fan here. I use it for my projects (and one project even makes enough revenue that I sponsor Sebastián’s work through GitHub sponsors at $250/mo)
by CoffeePython 6y ago
Huge FastAPI fan here.
I use it for my projects (and one project even makes enough revenue that I sponsor Sebastián’s work through GitHub sponsors at $250/mo) and it for sure has increased my development velocity.
It’s an absolute joy to work with. The automated interactive docs are great for iteration. Type hints as first class citizens is an awesome developer experience that I didn’t think I wanted.
Using the auto generated OpenAPI you can even generate client side code and typings to interact with your API.
It feels like flask but with lots of quality of life improvements.
[1] https://www.vim.so https://www.vim.so
- kowlo 6y agoDo you have any examples of using the OpenAPI to generate client-side code?
- jayjaycross 6y agoI use openapi-generator with FastAPI to do this. It has a lot of languages and libraries you can choose from to generate your client side code in. https://github.com/OpenAPITools/openapi-generator https://github.com/OpenAPITools/openapi-generator
- Cthulhu_ 6y agoI use the openapi-generator as well, but I write the spec first, then generate both client- and server-side models. Not the client itself so much; I don't like the client-side clients it generates much, and the server-side client is barebones at best. (Server is in Go, client is in Typescript)
- djsavvy 6y agoWow, this is cool! I understand if you don't want to give away the secret sauce, but how did you get vim working so smoothly in a browser?