Skip to content

Instantly share code, notes, and snippets.

View nside's full-sized avatar

nside

View GitHub Profile
from twisted.web.iweb import IBodyProducer
from twisted.internet import defer
from twisted.web.client import Agent
from twisted.web.http_headers import Headers
from zope.interface import implements
import urllib
class StringProducer(object):
implements(IBodyProducer)