Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/d/h/DHTBot-HEAD/dhtbot/protocols/krpc_sender.py   DHTBot(Download)
from dhtbot.krpc_types import Query, Response, Error
from dhtbot.transaction import Transaction
from dhtbot.protocols.errors import TimeoutError, KRPCError 
 
class IKRPC_Sender(Interface):
    def errorReceived(self, error, transaction, address):
        transaction.deferred.errback(KRPCError(error))
 
    def sendKRPC(self, krpc, address):
        encoded_packet = krpc_coder.encode(krpc)

src/d/h/DHTBot-HEAD/dhtbot/protocols/krpc_iterator.py   DHTBot(Download)
 
from dhtbot.protocols.krpc_responder import KRPC_Responder, IKRPC_Responder
from dhtbot.protocols.errors import TimeoutError, KRPCError
 
class IterationError(Exception):