Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
1–10 of 33 posts
Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#2Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#3Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#4But I think frameworks are not that important. I use Flask mostly for its HTTP request handling functionality. But everything else is my own (e.g., the overall setup, configuration etc).
I think what's most important is understanding that loosely coupled components are the way to go. Know how your scripting language loads and manages modules and try to get to a simple convention on how to organize your code. Minimize the use of ready-to-use extensions and just try to effing know. how. things. work. Glue code together yourself. Document religiously how you did it[1]. It'll save you a world of trouble.
The one tool that has been central to my web development work in Python is pretty much framework-agnostic: Fabric. My projects start with a single fabfile.py and and lib/ directory. I do most of the prototyping in the fabfile.py, which serves as a sort of adhoc testing sandbox[2]. And then I start adding request handlers and writing markup/css. With this approach, whether you're using Flask, webpy or Juno (my faves) is irrelevant. But sticking with Flask might give you a more enthusiastic and active community nowadays.
[1] http://tom.preston-werner.com/2010/08/23/readme-driven-devel...
Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#5I'm not sure what you're comparing.
Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#6Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#7web2py deserves a place on the list. I've found it to be more productive than django.
Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#8Are any of these frameworks even compatible with the event driven mechanisms like twisted, tornado, etc?
I'm having to pick up Python since a lot of the webapp infrastructure at the startup I joined is Python/Django and I haven't really liked it so far, especially since everything we do would benefit from being done in an event loop (tons of IO to background services that make web requests block)
Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#9What was the development time of the webapp in each of the frameworks?
Re: Comparing Python frameworks: A simple webapp in Flask, web.py, bottle, juno ...
#10Not to diminish the contribution from shabda - but what would really interest me is hearing about these frameworks from the perspective of someone who has launched and maintained a complex system, not a toy app.
Not complex, but should give me a chance to test the ORM, Session, Cookies etc.