master branch updates #19
41
user_module.py
Normal file
41
user_module.py
Normal file
@ -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()
|
||||
Loading…
Reference in New Issue
Block a user