5 ms·
Bottle [0] is single file, simple web framework for Python. It's pretty easy to use and well documented. It has no dependencies outside the standard library but
by dpwm 9y ago
Bottle [0] is single file, simple web framework for Python. It's pretty easy to use and well documented. It has no dependencies outside the standard library but can optionally use a number of more robust web servers.
Flask [1] has similarities and IIRC the author of Flask, Armin Ronacher, has in the past proposed merging it with Bottle. However, the single file and dependencies thing is where the author of each framework disagrees.
Flask has tools that help with structuring larger apps and seems to be more widely used than Bottle.
Personally, I prefer bottle for things I know will remain small, just for the lack of dependencies and that I personally find the documentation easier to read.
[0] http://bottlepy.org/docs/stable/ http://bottlepy.org/docs/stable/
[1] http://flask.pocoo.org/ http://flask.pocoo.org/
- SlowBro 9y agoThank you, I haven't looked at Bottle. The Hello World is actually comprehensible to me and I was able to mentally crunch the entire tutorial page no problem. I checked out Flask but was overwhelmed, went through the Django tutorial and really couldn't get my head around what I needed to transfer it to my own code. LOL I told you I'm simple... SlowBro may be slow, but he's a bro...
- jamesgeck0 9y agoFlask has _really good_ documentation. Sitting down and just reading the whole manual cover to cover was one of the most productive things I did when I was getting my head around MVC. It's not in Python, but I also really like the tiny Camping framework in Ruby. It's tiny enough and well documented enough that you can read and (more or less) understand the whole thing, even if you're not great at Ruby. My path when learning web development kind of went from Camping to Sinatra to Rails, with periodic detours to Flask. The high level concepts are very similar.