MCPcopy Create free account
hub / github.com/geekcomputers/Python / Run

Class Run

Password Generator/pass_gen.py:68–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68class Run:
69 def decide_operation(self):
70 user_input = input(": ")
71 try:
72 int(user_input)
73 except:
74 Interface.change_has_characters(user_input)
75 else:
76 Interface().generate_password(int(user_input))
77 finally:
78 print("\n\n")
79
80 def run(self):
81 menu = f"""Welcome to the PassGen App!
82Commands:
83 generate password ->
84 <lenght of the password>
85
86commands to change the characters to be used to generate passwords:
87{list_to_vertical_string(Interface.has_characters.keys())}
88 """
89 print(menu)
90 while True:
91 self.decide_operation()
92
93
94Run().run()

Callers 1

pass_gen.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected