Graham Binns | Photographer | +44 (0)7725 525916

  • Connect with me
    • Twitter
    • Facebook
    • Google+
    • Flickr
    • Model Mayhem
  • Contact me
    • Enquire about a shoot
    • Mobile: +44 (0)7725 525916
    • Email: mail@grahambinns.com
  • Portfolios
    • Portfolio: Portraiture
    • Delivered Edits
      • Massive Wagons
  • Blog
May 13, 2007 by graham

XML-RPC in Django

When I first started thinking about re-writing grahambinns.com in Python using the Django framework, one of the things that I knew I wanted to be able to do was make blog posts (amongst other things) using the MetaWeblog API, which is one of the many zillion XML-RPC blog posting APIs that exist out there in the intartubes.

XML-RPC isn't one of the features that Django supports out-of-the-box for fairly obvious reasons; whilst it's not exactly a niche market it is something that needs to be specifically tailored to the sites that use it, so implementing it would exactly be the first priority for the Django cadre.

Because Python already offers some pretty kick-ass XML-RPC library code in the form of xmlrpclib (Python rocks, by the way), which made it easy to implement a simple XML-RPC server myself, I did. And now you can use it, if you want to.

django_xmlrpc (as I've unimaginatively called it) offers a Django app that allows you to expose your functions through XML-RPC. At present it doesn't support introspection, but that's the next aim for it.

You can find django_xmlrpc, along with instructions about how to use it, at its Google Code site (n.b., I'd like to use Launchpad exclusively for this, but for the time being I'm using Google code until I can get round to setting up a wiki and what have you). If you've got any issues, please report them using either Google Code's bug tracker or (for preference) the project's Launchpad bug tracker.

I'm working on making my MetaWeblog implementation a little more generic; more news on that as and when.

Posted in Uncategorized and tagged with django, django_xmlrpc, python, xml-rpc. RSS 2.0 feed.
« Of frenzied scripting
More Django XML-RPC and credit there for »

2 Responses to XML-RPC in Django

  1. B.W. McAdams says:
    May 15, 2007 at 2:40 am

    Just to point out, there’s been code on the Django Wiki for nearly a year to do XML-RPC:

    http://code.djangoproject.com/wiki/XML-RPC

    Reply
  2. Graham Binns says:
    May 16, 2007 at 8:35 am

    You’re quite right, there has, and that was what I based my code upon. In fact, I’ve now amended the code in the development trunk to reflect this fact (my bad; I completely forgot to include the acknowledgement, for which I beseech a thousand monkeys to flay me in a ritualistic manner).

    The reason that I decided to take that code and turn it into something that (I think) is more flexible is simply to save people a bit of legwork.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blogroll (people I know)

  • Callum Winton
  • Charles & Catia
  • Paul McGuigan
  • Tony Whitmore

Blogroll (people I look up to)

  • Bert Stephani
  • Chase Jarvis
  • David Hobby (strobist.com)
  • Joe McNally
  • Pieter van Impe
  • Zack Arias

Other sites

  • creativeLIVE
  • Kelby Training

About Graham Binns

Graham BinnsI'm a commercial and editorial portrait photographer from North West England.After spending several years building a career as a software engineer I realised that there was an artist inside me struggling to get out.
  • mail@grahambinns.com
  • +44 (0)7725 525916

Search

All content © 2012 by Graham Binns | Photographer | +44 (0)7725 525916. WordPress Themes by Graph Paper Press