2 ms·
I 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
by rpicard 13y ago
I 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/