def get_client_str(username: str, ip_address: str, user_agent: str, path_info: str) -> str:
client_dict = dict()<EOL>if settings.AXES_VERBOSE:<EOL><INDENT>client_dict['<STR_LIT:username>'] = username<EOL>client_dict['<STR_LIT>'] = ip_address<EOL>client_dict['<STR_LIT>'] = user_agent<EOL><DEDENT>else:<EOL><INDENT>client_dict = get_client_parameters(username, ip_address, user_agent)<EOL><DEDENT>if path_info and isinstance(path_info, (tuple, list)):<EOL><INDENT>path_info = path_info[<NUM_LIT:0>]<EOL><DEDENT>client_dict['<STR_LIT>'] = path_info<EOL>template = '<STR_LIT:U+002CU+0020>'.join(<EOL>f'<STR_LIT>'<EOL>for key, value<EOL>in client_dict.items()<EOL>)<EOL>template = '<STR_LIT>' + template + '<STR_LIT>'<EOL>return template.format(client_dict)<EOL>
Get a readable string that can be used in e.g. logging to distinguish client requests.

Example log format would be ``{username: "example", ip_address: "127.0.0.1", path_info: "/example/"}``