Python web micro-framework battle
11–20 of 59 posts
Re: Python web micro-framework battle
#12Line count is a silly way to score when all are around the same anyway (fewer than 100 lines). And the framework line count is another metric that shouldn't matter. That said, really the only valid point here against Flask is Python 3 support. Other than that Bottle and Flask are pretty much on par with each other.
Flask has the advantages of fast templates, strong WSGI features, serious unit testability at the app and library level, complete documentation...
Re: Python web micro-framework battle
#13Earlier quoted context omitted.
Flask has the advantages of fast templates, strong WSGI features, serious unit testability at the app and library level, complete documentation...
but didn't you read the presentation ? templates are out man. Write your HTML as string concatenations " " + helloworld + " " right inside your __init__.py or YOU'RE NOT COOL.
Re: Python web micro-framework battle
#14Earlier quoted context omitted.
but didn't you read the presentation ? templates are out man. Write your HTML as string concatenations " " + helloworld + " " right inside your __init__.py or YOU'RE NOT COOL.
The presentation stated that templates were not part of the assessment criteria - since with most microframeworks template systems are either not bundled or easily replacable.
Re: Python web micro-framework battle
#15Re: Python web micro-framework battle
#16Re: Python web micro-framework battle
#17Where does one draw the distinction between micro- and megaframeworks? Or, for that reference, just a "framework"?
Obviously, I'm not serious here; but there's some truth in it. I.e. You'll see some companies ask for django or rails developers; not for flask python hacker right ;-)
Re: Python web micro-framework battle
#18Line count is a silly way to score when all are around the same anyway (fewer than 100 lines). And the framework line count is another metric that shouldn't matter. That said, really the only valid point here against Flask is Python 3 support. Other than that Bottle and Flask are pretty much on par with each other.
Will come eventually. Right now the topic comes rarely up and it requires a ton of work on the Werkzeug side to make it work in a way that is user friendly. That being said, Flask and Jinja2 are not the problem here. The former easily works on Python 3 and the latter already does (just that we don't have any users on Python 3 yet).
Re: Python web micro-framework battle
#19Re: Python web micro-framework battle
#20With those criteria, I'm sort of switching between Flask and Tornado right now.
Speed is a major consideration with any python framework, too. You've got serious threading concerns. Even with Tornado, advertised as non-blocking, the default solution is nginx running against a whole bunch of tornado threads. ...