3 ms·
The (admittedly biased) history of bottle and flask from the author was fascinating https://github.com/bottlepy/bottle/issues/1158#issuecomment-526602488 https:
by hermanradtke 7y ago
The (admittedly biased) history of bottle and flask from the author was fascinating https://github.com/bottlepy/bottle/issues/1158#issuecomment-526602488 https://github.com/bottlepy/bottle/issues/1158#issuecomment-...
- rambojazz 7y agoHe says that Bottle lost and maybe it's true that flask is more popular, but I regard it as a superior framework because of its simplicity. I for one have completely replaced all my flask projects with bottle.
- fermigier 7y agoI think one of the most important technical statements in this comment is this: "even the same design errors (global request/response objects)". (Note to outsiders: we're not talking globals in the usual sense here, they are very carefully crafted proxies on top of thread-locals that behave like globals, i.e. can be imported at module level, but behave correctly in terms of concurrency.) As a long-time Flask developer, this is the biggest source of frustration when trying to do anything "frameworky" around Flask (see http://mitsuhiko.pocoo.org/AdvFlaskPatterns.pdf http://mitsuhiko.pocoo.org/AdvFlaskPatterns.pdf for some technical explanations). There are a lot of emerging web frameworks in Python-land these last years, hopefully some of them will get the success they deserve. To displace the current dominant players (arguably: Django, Flask and Pyramid), one needs a paradigm shift, just as Django displaced the dominant player (Zope) in 2005 when "MVC frameworks" became the dominant paradigm, or when Flask and Bottle rode the "microframeworks" wave in 2010. This current paradigm shift is probably spelled ASGI. For more read https://dev.to/florimondmanca/introduction-to-asgi-emergence-of-an-async-python-web-ecosystem-38oi https://dev.to/florimondmanca/introduction-to-asgi-emergence... BTW: here's a fresh take from a friend who did exactly that last year: https://florimond.dev/blog/articles/2018/12/how-i-built-a-web-framework-and-became-an-open-source-maintainer/ https://florimond.dev/blog/articles/2018/12/how-i-built-a-we... (with limited success, despite a lot of talent and dedication). I'm curious to know which of the "new" (ASGI or not) Python frameworks are using these days.
- rapfaria 7y agoFastAPI - https://github.com/tiangolo/fastapi https://github.com/tiangolo/fastapi
- devxpy 7y agoStarlette is very nice. starlette.io/
- jgwil2 7y agoIt's a bit difficult to understand what's going on based only on the slides you've linked; do you have a link to a recording of the talk by any chance?