The Google API Client for Python is a new project to implement a Python client for discovery based APIs, which is currently Moderator, Buzz and Latitude. I had pointed out the existence of the discovery document back in May, and the same caveats still apply, it is very early days and you should expect the format to change. On the other hand, having a discovery document as part of the web service itself greatly simplfies the code; the core code is in apiclient/discovery.py and weighs in at less than 300 lines of code. That's not feature complete by any means, but take a look at samples/cmdline/buzz.py to see how easy it can be to interact with the Buzz APIs.
2010-08-26
Hg-prompt, because the only annoyance of Mercurial Queues is accidentally pulling when you have queued patches applied.
# Prompt stuff
D=$'\e[00m'
PINK=$'\e[01;35m'
GREEN=$'\e[01;32m'
ORANGE=$'\e[01;33m'
hg_ps1() {
hg prompt --angle-brackets "<on ${GREEN}<branch>${D}>\
< at ${GREEN}<bookmark>>${D}${PINK}<status>${D}\
< [${ORANGE}<patches|hide_unapplied>${D}]>" 2> /dev/null
}
2010-08-17
The introduction of a computer into a house or business meant the introduction of more stuff. Computer, monitor, cables, printer, etc. The whole "Paperless Office" thing was a sham, owning a computer meant even more paper than ever was printed and lying around. But recently that trend in our house has started to turn around. We're not actually moving in the other direction yet, but I do see things leveling off. Part of that has been the improvement in technology, for example, Google Docs. The value of the electronic form of the document (collaboration) now exceeds the value of the printed form (ease of reading, off-line access). That got me to thinking of how much stuff I own, besides the printer, that may eventually go away, and it was then that I realized that there's already a bunch of stuff that I will never buy again thanks to owning an Android phone:
That list will only grow. For example, I soon expect to add Boarding Passes.
And yes, I know, if you are serious about something then the smartphone version won't do for you. For serious photography people it won't replace their camera. Really into camping and wilderness survival, then I doubt you want the smartphone compass. But for most uses the smartphone version is good enough, and that means less stuff.
2010-08-14