def get_by_username(self, username):
res = filter(lambda x: x.username == username, self.users.values())<EOL>if len(res) > <NUM_LIT:0>:<EOL><INDENT>return res[<NUM_LIT:0>]<EOL><DEDENT>return None<EOL>
Retrieve user by username