41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
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() |