diff --git a/user_module.py b/user_module.py new file mode 100644 index 0000000..a7f6899 --- /dev/null +++ b/user_module.py @@ -0,0 +1,41 @@ +import config as config +import db + +import credentials + +class User_Module(): + def __init__(self): + super().__init__() + self.dbCredential: credentials.DB_Credential + + def main(self): + print("Waiting on User input...") + while True: + keyboardInput = input() + + if "exit" or "quit" or "stop" in keyboardInput: + print("Quitting User Module Interface...") + break + + self.parseInput(keyboardInput) + + def parseInput(self, input): + if self.isCommand(input): + self.runCommand(input) + else: + pass + + def isCommand(self, input): + isCommand = False + return isCommand + + def runCommand(self, input): + pass + +if __name__ == "__main__": + testModule = User_Module() + + credentials_manager = credentials.Credentials_Module() + credentials_manager.load_credentials() + testModule.dbCredential = credentials_manager.find_DB_Credential(config.credentialsNickname) + testModule.main() \ No newline at end of file