A small fast and cute web framework in Python.
bottlepy.org
bottlepy.org
I needed an easy, quick way to take roll call of a large group of people. We have a laptop with a projector but no internet access where the meeting occurs, so it had to be able to live on a Windows machine without network access. Bottle allowed me to pull together something in about five hours that uses sqlite for local storage of all of the participants names and whether they are present/absent and any notes. Previously, I was doing this on an inherited excel spreadsheet and it was very difficult for anyone else to read their name or any information. Now, it's a very simple HTML page with very large font that can be read from the back of the room.
So, thank you bottle! I was able to develop on Linux and fairly painlessly deploy it to the Windows laptop, and it worked the first time. (That was scary... Rarely happens to me.)
I almost always have to seed Version 1 as a stealth project or weekend project. Version 2 is more likely to be approved once it has been shown useful.
The next stage is to get a slightly more comprehensive site going which will keep track of contact information, attendance history, etc.
This mechanism is quite good for ensuring every request proper gets a response, though it also allows dodgy exception handling to interfere with processing. A discussion on the merits of exceptions themselves is beyond the scope of this comment. :)
https://github.com/playframework/play/blob/master/framework/...
See "renderTemplate(String templateName, Map<String,Object> args)" for a good example.
Of course I just use it for tiny basically desktop apps, where I just wanted to use the browser as an interface to avoid writing UI code.
http://bottlepy.org/docs/dev/ vs http://bottlepy.org/docs/dev/index.html
Warning: This is a preview for Bottle-0.11.dev, which is not released yet. Switch to the latest stable release?
Just something to be aware of.That said I installed Bottle and played with it - looks nice!
If bottle has something like Flask's Blueprint, which facilitates the management of larger projects, bottle will clearly win as a micro-framework.
In the end, who is the winner really boils down to how much love a framework is given to by its founder. Web.py started a generation of nice frameworks, but I think the person behind it didn't put a lot of effort in pushing it forward, and eventually, it just stopped progressing.
One man's opinion (based on experience).
cool stuff, man.