5 ms·
Yeah, this is very cool, and I’m surprised I hadn’t heard about it. Though I think we’re finally at the point where async python web frameworks and tools are gr
by dkh 7y ago
Yeah, this is very cool, and I’m surprised I hadn’t heard about it. Though I think we’re finally at the point where async python web frameworks and tools are great, to the point where I’m no longer jonesing for something better like I used to, both in terms of performance and usability.
Yeah, aiohttp was where it all really began, and sanic is nice for recovering Flask users, but if you really want to see performance and momentum, check out Starlette (https://www.starlette.io https://www.starlette.io) and FastAPI (https://fastapi.tiangolo.com https://fastapi.tiangolo.com) which is built on top of Starlette and is very clever and probably the most rapid way to build an API that I’ve ever seen. In most practical tests Starlette also outperforms aiohttp/etc. by a factor of 5, and the ASGI spec it’s built on is the actual successor to WGSI and the future of python web programming.
Things have come a very long way the last handful of years, and there are many great options. Nice to see yet another one.
- smitty1e 7y agoFlask user here. Is the point of Kore to simplify doing services, as opposed to browser work?
- jgalt212 7y agoand since it's async, is this best suite for an I/O bound service rather than an RPC service?
- madelyn 7y agoFor anyone interested in Starlette or general async programming in Python, I also want to point out that there's a few great packages maintained by Encode/Tom Christie (of Django Rest Framework fame). The developer ergonomics are getting really good, I especially love encode/databases, which has full support for SQLAlchemy Core, and encode/httpx, a requests-like HTTP client. https://github.com/encode https://github.com/encode