Re:A small fast and cute web framework in Python.
by edwinnathaniel on Saturday May 26, 2012 @10:28AM
(#4027351)
Bottle vs Flask, who will win?
[ Parent
| on HN ]
Re:A small fast and cute web framework in Python.
by vph on Saturday May 26, 2012 @02:55PM
(#4028034)
Flask has a bigger dev team, but Bottle is a nicer, more elegant micro-framework. From what I can see, the design of Flask can be broken down into 2 phases. The first phase is essentially like bottle. The second phase added class views and the likes. And it became inelegant and verbose.
If bottle has something like Flask's Blueprint, which facilitates the management of larger projects, bottle will clearly win as a micro-framework.
In the end, who is the winner really boils down to how much love a framework is given to by its founder. Web.py started a generation of nice frameworks, but I think the person behind it didn't put a lot of effort in pushing it forward, and eventually, it just stopped progressing.
Re:A small fast and cute web framework in Python.
by DasIch on Saturday May 26, 2012 @11:22AM
(#4027474)
Bottle is older than Flask still the latter is far more popular, has more features, is better documented and has a bigger community. It is really not a question of who will win but who has won.
Re:A small fast and cute web framework in Python.
by jessejmc on Saturday May 26, 2012 @11:06AM
(#4027430)
Bottle supports Python 3 (as does CherryPy, Pyramid, and Tornado), while Flask currently doesn't. Depending on project requirements, this may or may not be important.
Re:A small fast and cute web framework in Python.
by jsprinkles on Saturday May 26, 2012 @11:07AM
(#4027432)
Werkzeug must support Python 3 before Flask can, and Armin has discussed Python 3 support here on HN before (and there's now a FAQ about it).
Re:A small fast and cute web framework in Python.
by ch0wn on Saturday May 26, 2012 @10:54AM
(#4027398)
I hope they will continue to coexist. Competition is great. I personally prefer Flask, mostly because I built my own little framework on top of Werkzeug before and know the code quite well. Also, I'm not a huge fan of the single-file approach, but this is just my personal preference.
Re:A small fast and cute web framework in Python.
by pearkes on Saturday May 26, 2012 @10:55AM
(#4027401)
How big do your projects get (by LoC) in a single file in Flask? Have you ever looked into blueprints[1]?
Re:A small fast and cute web framework in Python.
by ch0wn on Saturday May 26, 2012 @12:52PM
(#4027690)
Sorry, I wasn't clear about this. I meant the single-file approach of Bottle.
Re:A small fast and cute web framework in Python.
by srik on Saturday May 26, 2012 @11:19AM
(#4027466)
I love he fact that we have so many options. I myself am writing a small event driven web framework and should be out by the end of summer.
Re:A small fast and cute web framework in Python.
by Marwy on Saturday May 26, 2012 @01:03PM
(#4027726)
I feel like Flask is node.js of python web frameworks. I guess some people just like shiny/new/popular things.
Re:A small fast and cute web framework in Python.
by jsprinkles on Saturday May 26, 2012 @11:08AM
(#4027435)
Why must there be a winner?