Loving Django Piston

January 10, 2012

A couple of years ago when I was first getting into Python and Django I experimented with building some RESTful services. Maybe it was because of my lack of experience with the platform but I don’t remember it being particularly easy.

Fast-forward a few years and it couldn’t be easier. A simple pip install django-piston then followed the documentation here https://bitbucket.org/jespern/django-piston/wiki/Home and I was on my way.


Python is something that I’ve been looking into lately, mainly because I use Jython a lot at work in administering our Websphere Application Servers (their admin shell makes extensive use of it). More recently though I’ve been thinking that maybe I should be looking more seriously at it. It wasn’t that long ago that Google released their App Engine which currently only runs Python apps. This is really exciting stuff for anyone interested in cloud computing.

Anyway in my travels I stumbled upon what is possibly the smallest application server implementation I’ve seen in my life, written by Pierre Quentel. Admittedly it’s pretty limited in functionality, but I thought it was quite a nice demonstration by Pierre of the power of Python as a language and the breadth and depth of the standard libraries. Amazingly it even handles sessions!

You can check out the full post at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/392879

I’d be interested to see if anyone has come across anything smaller, that demonstrates the relative ease and elegance of implementation in one language versus another (I’m sure that some of your Perl guys have something amazing up your sleeves).