Category Archives: Python

Bottle: A Refreshing Web Framework

I’ve been toying with some ideas lately for a neat startup.  I know I should probably come out and give more details about it, but I want to keep my lips sealed until I have something more concrete to show for it!  Anyway… I’ve been looking at doing this entire project with Ruby, but part of this project requires me to work with a remote service that uses ZeroC Ice.  I’ve come to find out very quickly, that the Ruby support in ZeroC Ice is pretty lacking, and despite my best efforts, I can’t get them to play nice with each other (if any ZeroC developers would like to share my pain, just drop me a line).

After 2 days fighting with Ruby and Ice, I decided “What the hell, let’s give Python a spin!”  To ZeroC’s credit, their Python support is working much, much better for me.  I’ve never really written anything more than a silly FizzBuzz program in Python, but I always enjoy trial by fire, so I started digging around for a nice, thin web framework to use.  After poking around for a while, I came across a little diamond in the rough called Bottle.  Working with Bottle has been a shear joy, and I couldn’t be happier with the result.  Here’s the basic idea:

Continue reading