Simon Willison’s Weblog

Subscribe

Python bits and bobs

29th January 2003

Two fun bits from the Daily Python URL today (still without permalinks). SQLObject is an object-relational mapper class which can create objects that directly map to rows in a relational database, making INSERTs and UPDATEs much simpler. I’ve tried to write this kind of thing in PHP before with mixed results, so I’m quite tempted to pinch the idea of tracking foreign keys and joins for my next attempt. More immediately useful however is rlcompleter2 which adds tab based auto completion to the Python interactive prompt. I had a play with it earlier and it was definitely an improvement on the vanilla command line.

This is Python bits and bobs by Simon Willison, posted on 29th January 2003.

Next: Off to amsterdam

Previous: Switched

Previously hosted at http://simon.incutio.com/archive/2003/01/29/pythonBitsAndBobs