Is there a Generic python library to consume REST based services? [closed] Is there a Generic python library to consume REST based services? [closed] python python

Is there a Generic python library to consume REST based services? [closed]


The problem with having a "plush" REST client library is that REST itself isn't that well-defined. REST, in and of itself, just means that you want to use HTTP standards whenever possible, but other than that, the field is wide open.

Is the data encoded with JSON? What are the URL schemes and what do they mean?

Since REST basically just means HTTP, your best bet is httplib, but I wouldn't describe it as plush.


I've mostly used just urllib2 or httplib2. I haven't really found a use for a general purpose REST client.


Something like a generic REST library is hardly possible since each REST interface is different. Whith WADL there has been an attempt to establish a WSDL-lik interface description language for RESTful services. Using such a description a generic client would be possible but no one seems to care about WADL. And everyone seems fine with that.