5 ms·
I'm curious, and not just from the author, but why Flask and not something like Bottle? After recently starting a Python 3 web project I was disappointed to see
by wbond 13y ago
I'm curious, and not just from the author, but why Flask and not something like Bottle? After recently starting a Python 3 web project I was disappointed to see that Flask and many of its main dependencies don't run on Python 3.
Don't get me wrong, Flask seems to have a lot of mind-share, it just seems like a lot of people would be interested in working with Python 3.
- fallenhitokiri 13y agoThey are being ported to Python 3. You can find some infos about it in Armin Ronachers twitter stream and in this[1] blog post. Personally I am in no hurry to switch to Python 3 and Flask "just works" and does everything I need in a, at least for me, sane way. [1] http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ Edit: they = Flask and some dependencies
- bsg75 13y agoThe number of choices in the minimal framework category is a bit ironic. Hard to tell where to start. (re http://www.pythondiary.com/blog/Feb.14,2012/too-many-micro-webframeworks.html http://www.pythondiary.com/blog/Feb.14,2012/too-many-micro-w...)
- taude 13y agoOne of the reasons I went with Flask over one of the other minimalit frameworks was the plugin support. There's "just enough" existing code to get you up to speed quickly without acquiring all the technical debt of a full-fledged framework stack. I used and played with bottle first, and seriously thought about it for implementing my restful-ish APIs.
- rpicard 13y agoI don't have extensive experience with other Python frameworks, but what attracted me to Flask is what taude said.[1] There is just enough existing code to get you started and you don't have all of the technical debt of a full-fledged framework. When I was starting, my first thought (like most people) was to work with Django, but what drove me crazy was that my project started with a bunch of files and code that I didn't write. I want all of that to be abstracted away via plugins and modules, and Flask does that really well. I'm not sure how that compares to Bottle or other Python frameworks, but I feel like Flask suits me perfectly. Regarding Python 3 support, a port is in progress so as Python 3 gains traction I think Flask will emerge as part of that transition, but for now Python 2 works well for most people. [1] https://news.ycombinator.com/item?id=5757038 https://news.ycombinator.com/item?id=5757038
- wbond 13y agoYeah, I just didn't want to acquire all of the technical debt of starting a new project in 2.7 when 3 has been out for 5 years now and 2 is effectively in support mode. All new standard library enhancements will be in 3 and I can't imagine people will start many new packages that are 2.x only. I haven't done much Python web development before, but I have a fair amount of experience with PHP and Ruby, so I found stitching together something useful with Bottle and a number of other packages was pretty low-friction other than porting a half-dozen different packages to Python 3. Unfortunately looking at flask it seemed the work to port it along with jinja2 and werkzeug was too much of a barrier to entry.
- rpicard 13y agoIt's my understanding that Armin Ronacher -- the creator of Flask -- has been making a lot of progress lately on porting to Python 3.[1] I don't think it's ready for production yet, but it's definitely something to keep an eye on. I might make it a point to address it in the book. [1] http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/
- count 13y agoA lot of people aren't interested in Python 3 yet, as you noted - many dependencies, etc. are not '3' compatible yet.