def __init__(self, host, username='guest', password='guest', vhost='/',
                 port=5672, heartbeat=0, io_loop=None):
        self.host = host
        self.port = port
        self.username = username
        self.password = password
        self.vhost = vhost
        self.heartbeat = heartbeat
        self.last_received_frame = None
        self.frame_max = 0
        self.io_loop = io_loop or IOLoop.instance()
        self.stream = None
        self.channels = {0: self}
        self.last_channel_id = 0
        self.channel_id = 0
        self.on_connect = None
        self.on_disconnect = None
        self.on_error = None
        self._close_callback = None
        self._frame_count = 0
        super(Connection, self).__init__(connection=self)
dataset/ETHPy150Open paolo-losi/stormed-amqp/stormed/connection.py/Connection.__init__/original