master branch updates #19

Merged
alex_orid merged 32 commits from master into db-module 2021-04-09 20:43:03 +00:00
Showing only changes of commit 1519e87859 - Show all commits

41
user_module.py Normal file
View 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()