XMLRPC2TUMBLR is a project mainly written in ..., it's free.
A gateway allowing MetaWeblog API enabled blog clients to post to tumblr.