Skip to content

Instantly share code, notes, and snippets.

View multivoxmuse's full-sized avatar

multivoxmuseOLDACCOUNT multivoxmuse

View GitHub Profile
@nanonyme
nanonyme / gist:6268358
Last active December 21, 2015 06:59
brainstorming on suds + python-requests thinamabob, MIT-licensed
from suds.transport import Transport, Reply
from suds.client import Client
import requests
from StringIO import StringIO
class RequestsTransport(Transport):
def open(self, request):
""" suds assumes urllib2 which doesn't have keepalives so things can go royally wrong if it doesn't
read the entire request. Hence, read it all up and give a StringIO object instead.