Beispiel #1
0
    def __init__(self, username, password):
        self.pacer_client = PacerClient(username, password)
        self.connection = pika.BlockingConnection(
            pika.ConnectionParameters('localhost'))
        self.channel = self.connection.channel()

        # set up the queue for later
        self.channel.queue_declare(queue='dockets')
Beispiel #2
0
 def reinit_pacer_client(self, username, password):
     # we have to log into each new court separately
     self.pacer_client = PacerClient(username, password)