def Identify_User(self): try: try: self.data.user_data_base = pd.read_csv(file_name) self.data.password = getpass.getpass("MasterPassword: "******"{bcolors.FAIL}Incorrect Password{bcolors.ENDC}") return False sys.exit() except KeyboardInterrupt: print(f"{bcolors.FAIL}User Interrupt!{bcolors.ENDC}") sys.exit()
return False sys.exit() except KeyboardInterrupt: print(f"{bcolors.FAIL}User Interrupt!{bcolors.ENDC}") sys.exit() try: U = User() U.data.user_data_base = pd.read_csv(file_name) except FileNotFoundError: print(f"{bcolors.OKBLUE}Database not created!!!{bcolors.ENDC}") print(f"{bcolors.OKBLUE}Enter a MasterPassword to create database{bcolors.ENDC}") password = sc.Get_Master_Password() U.data.Create_User_Database() key = En.Generate_Key(password) En.encrypt(key, file_name) sys.exit() parser = argparse.ArgumentParser(description="CLI Password Manager") parser.add_argument("-a", "--add_password", action='store_true', help="Add new password") parser.add_argument("-v", "--view_password", action='store_true', help="View saved password and login id") parser.add_argument("-l", "--list_passwords", action='store_true', help="List all stored password ") parser.add_argument("-R", "--remove_all", action='store_true', help="Remove all data stored in the system") parser.add_argument("-r", "--remove_pass", action='store_true',