-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
55 lines (43 loc) · 1.36 KB
/
main.py
File metadata and controls
55 lines (43 loc) · 1.36 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from saving.userfiles import save_response_u, save_response_sv, save_response_svu
from login.processor import login_processor
from dotenv import load_dotenv
import os
load_dotenv()
serviceip = os.getenv("host")
def tree():
choice = input("Would you like to 1) Create or 2) Login: ").strip()
if choice == "1":
create = input("Which save function to run? (u/sv/svu): ").strip().lower()
if create == "u":
save_response_u()
tree()
elif create == "sv":
save_response_sv()
tree()
elif create == "svu":
save_response_svu()
tree()
else:
print("Invalid choice, please try again.")
tree()
elif choice == "2":
sv_uuid = input("What is the service UUID to login to?: ").strip()
if sv_uuid == "":
print("Service UUID cannot be empty.")
tree()
return
svu_uuid = input("What is the account UUID to login to?: ").strip()
if svu_uuid == "":
print("Account UUID cannot be empty.")
tree()
return
login_processor(sv_uuid, svu_uuid, serviceip)
tree()
else:
print("Invalid choice, please try again.")
tree()
#from ui_app import SAMFpy
if __name__ == "__main__":
tree()
"""app = SAMFpy()
app.run()"""