@tornado.gen.coroutine
    def connect(self):
        if self.is_connected():
            raise tornado.gen.Return(True)
        cb1 = self._read_callback
        cb2 = self._close_callback
        self.__callback_queue = collections.deque()
        self._reply_list = []
        self.__reader = hiredis.Reader(replyError=ClientError)
        kwargs = self.connection_kwargs
        self.__connection = Connection(cb1, cb2, **kwargs)
        connection_status = yield self.__connection.connect()
        if connection_status is not True or not self.password:
            # nothing left to do here, return
            raise tornado.gen.Return(connection_status)
        authentication_status = yield self._call('AUTH', self.password)
        if authentication_status == b'OK':
            # correct password, it worked
            raise tornado.gen.Return(True)
        else:
            # incorrect password, return back the result
            LOG.warning("impossible to connect: bad password")
            self.__connection.disconnect()
            raise tornado.gen.Return(False)
Connects the client object to redis.
dataset/ETHPy150Open thefab/tornadis/tornadis/client.py/Client.connect