def get(self, key, recursive=False, sorted=False, quorum=False,<EOL>wait=False, wait_index=None, timeout=None):
url = self.make_key_url(key)<EOL>params = self.build_args({<EOL>'<STR_LIT>': (bool, recursive or None),<EOL>'<STR_LIT>': (bool, sorted or None),<EOL>'<STR_LIT>': (bool, quorum or None),<EOL>'<STR_LIT>': (bool, wait or None),<EOL>'<STR_LIT>': (int, wait_index),<EOL>})<EOL>if timeout is None:<EOL><INDENT>while True:<EOL><INDENT>try:<EOL><INDENT>try:<EOL><INDENT>res = self.session.get(url, params=params)<EOL><DEDENT>except:<EOL><INDENT>self.erred()<EOL><DEDENT><DEDENT>except (TimedOut, ChunkedEncodingError):<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>res = self.session.get(url, params=params, timeout=timeout)<EOL><DEDENT>except ChunkedEncodingError:<EOL><INDENT>raise TimedOut<EOL><DEDENT>except:<EOL><INDENT>self.erred()<EOL><DEDENT><DEDENT>return self.wrap_response(res)<EOL>
Requests to get a node by the given key.