4 ms·
I would do it with pure builtin asyncio Library. Python's standard library is enough to create a Restful API, I think. There's everything builtin already. I wro
by fatih-erikli 5y ago
I would do it with pure builtin asyncio Library. Python's standard library is enough to create a Restful API, I think. There's everything builtin already. I wrote a couple of blog posts about it, you can read and let me know what you think about it.
This is initial blog post, about creating a raw web server
https://fatih-erikli.com/creating-a-web-server-in-asyncio.html https://fatih-erikli.com/creating-a-web-server-in-asyncio.ht...
This is some boilerplate for creating a router and endpoints etc.
https://fatih-erikli.com/asyncio-boilerplate.html https://fatih-erikli.com/asyncio-boilerplate.html
And this is about interacting with other services such as Redis, Mongo, etc.
https://fatih-erikli.com/asyncio-streams.html https://fatih-erikli.com/asyncio-streams.html
- mastazi 5y agoThank you for the links and the explanation! Very interesting