Bottle 0.8 released (Micro Web Framework)
15 comments · 85% upvoted · source · other discussions
15 comments · 85% upvoted · source · other discussions
I never published the link but there are t-shirts available for some time now: http://bottle.spreadshirt.de/
If you don't want to buy there, you can get the logo as a vector image and print your own. Just ask :)
...really stop calling them micro. i saw what flask has to give last time, and i wouldn't call it a micro web framework.
It is, by far, my fav. web framework.
Nifty! I tried it out a couple of months ago to front-end a little Redis-based prototype, and it worked well. Unfortunately its launcher front-end does not run a threaded TCP server by default, and I discovered that only after my live demo... :)
I haven't had the chance to try out Bottle or Flask, but they look very similar. Does anyone have experience with them? Maybe some good/bad of each, or is it really just a toss up?
I'm biased towards Flask because I'm the author, but here the big differences between the two:
On the opposite there is Flask:
You have good reason to be proud of Flask doc; it is fantastic! and I for one owe you a debt of gratitude.
Side question - I was briefly looking at the Flask documentation earlier. Is there a way to not put routing in the controllers? I like the way having a separate url.py-equivalent gives you the flexibility to reuse controllers in another context with different routes.
Sure. If you are looking for something similar to Django, this part of the documentation might be what you are looking for: http://flask.pocoo.org/docs/patterns/lazyloading/#converting-to-centralized-url-map
Ooooh, shiny. Thank you sir, have an upvote.
mitsuhiko sums it up quite well. I'd just add these points:
Of cause I am biased, too ;)
I use bottle to add REST apis to control my eventlet daemons - it's enough to spice up some functions with route(), call eventlet.wsgi.server with bottle.default_app() and profit. Thank you for bottle!
That said, I choose flask for tasks more resembling "true" web programming. I trust werkzeug's wsgi implementation more, plus I get cool ajax debugger, sessions, easy jinja templating and stuff.
How many hundreds of micro web frameworks do we have for Python now?
EDIT: Not saying anything about this particular one, but why do so many people try their hand at building a micro web framework?
opi 10 points · Jul 2010
It's a learning experience.
mitsuhiko 4 points · Jul 2010 · :flask-logo: Flask Creator
Because a basic (even if not passing any tests) WSGI implementation is very simple and everyone wants to has one on its own which is slightly different to others. I'm one of those offenders with my Werkzeug library and also with a Framework on top of it.
Variety Is The Spice Of Life they say.