class _HashSumProtocol(Protocol): | |
def __init__(self, kind='sha256'): | |
self._hash = hashlib.new(kind) | |
def dataReceived(self, data): | |
self.bytes_received += len(data) | |
self._hash.update(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
then you'd do something like this with a
twisted.web.client
Agent: