def __init__(self, host='localhost', port=5672): self._connection = pika.BlockingConnection(pika.ConnectionParameters(host=host, port=port)) self._channel = self._connection.channel()