code: def attemptByKey(self, key):
          
  
          return self.store.findUnique(_PasswordResetAttempt,
                                       _PasswordResetAttempt.key == key,
                                       default=None)
docs: Locate the L{_PasswordResetAttempt} that corresponds to C{key}