-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
40 lines (34 loc) · 1.14 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from src.create_account import create_account
from src.login import login
from rich.console import Console
from rich import print
rich_colors = Console()
def run_main_app():
choice = ''
while choice != '1' or choice != '2' or choice != '3':
rich_colors.rule("[bold red] MAIN DASHBOARD", style='bold magenta')
choice = input('Would you like to create an account or Login?'
'\n1. Create an account'
'\n2. Login to existing account'
'\n3. Exit'
'\n'
).strip()
if choice == '1':
"""
Account creation
"""
create_account()
elif choice == '2':
"""
Login section of the code
"""
login()
elif choice == '3':
'''
Exit out of application
'''
exit()
else:
print('[bold red]Choice not available, Pick between [bold green]1, 2[/bold green] and [bold green]3.')
if __name__ == "__main__":
run_main_app()