remoterf 0.0.7.29__py3-none-any.whl → 0.0.7.30__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of remoterf might be problematic. Click here for more details.
- remoteRF/core/app.py +15 -15
- {remoterf-0.0.7.29.dist-info → remoterf-0.0.7.30.dist-info}/METADATA +1 -1
- {remoterf-0.0.7.29.dist-info → remoterf-0.0.7.30.dist-info}/RECORD +6 -6
- {remoterf-0.0.7.29.dist-info → remoterf-0.0.7.30.dist-info}/WHEEL +0 -0
- {remoterf-0.0.7.29.dist-info → remoterf-0.0.7.30.dist-info}/entry_points.txt +0 -0
- {remoterf-0.0.7.29.dist-info → remoterf-0.0.7.30.dist-info}/top_level.txt +0 -0
remoteRF/core/app.py
CHANGED
|
@@ -13,9 +13,9 @@ account = RemoteRFAccount()
|
|
|
13
13
|
session = PromptSession()
|
|
14
14
|
|
|
15
15
|
def welcome():
|
|
16
|
-
printf("Welcome to
|
|
16
|
+
printf("Welcome to RemoteRF Reservation System. (all times are in Pacific Time)", (Sty.BOLD, Sty.BLUE))
|
|
17
17
|
try:
|
|
18
|
-
inpu = session.prompt(stylize("Please ", Sty.DEFAULT, "login", Sty.GREEN, " or ", Sty.DEFAULT, "register", Sty.RED, " to continue. (", Sty.DEFAULT, 'l', Sty.GREEN, "/", Sty.DEFAULT, 'r', Sty.RED, "):", Sty.DEFAULT))
|
|
18
|
+
inpu = session.prompt(stylize("Please ", Sty.DEFAULT, "login", Sty.GREEN, " or ", Sty.DEFAULT, "register", Sty.RED, " to continue. (", Sty.DEFAULT, 'l', Sty.GREEN, "/", Sty.DEFAULT, 'r', Sty.RED, "): ", Sty.DEFAULT))
|
|
19
19
|
if inpu == 'r':
|
|
20
20
|
print("Registering new account ...")
|
|
21
21
|
account.username = input("Username: ")
|
|
@@ -26,7 +26,7 @@ def welcome():
|
|
|
26
26
|
if password == password2:
|
|
27
27
|
double_check = False
|
|
28
28
|
else:
|
|
29
|
-
print("Passwords do not match. Try again")
|
|
29
|
+
print("Passwords do not match. Try again.")
|
|
30
30
|
|
|
31
31
|
account.password = password
|
|
32
32
|
account.email = input("Email: ") # TODO: Email verification.
|
|
@@ -49,22 +49,22 @@ def welcome():
|
|
|
49
49
|
exit()
|
|
50
50
|
|
|
51
51
|
def title():
|
|
52
|
-
printf(f"
|
|
52
|
+
printf(f"RemoteRF Reservation System", Sty.BOLD)
|
|
53
53
|
# printf(f"Logged in as: ", Sty.DEFAULT, f'{account.username}', Sty.MAGENTA)
|
|
54
54
|
printf(f"Input ", Sty.DEFAULT, "'help' ", Sty.BRIGHT_GREEN, "for avaliable commands.", Sty.DEFAULT)
|
|
55
55
|
|
|
56
56
|
def commands():
|
|
57
57
|
printf("Commands:", Sty.BOLD)
|
|
58
|
-
printf("'clear' ", Sty.MAGENTA, "-
|
|
59
|
-
printf("'getdev' ", Sty.MAGENTA, "-
|
|
60
|
-
printf("'help' or 'h'", Sty.MAGENTA, "-
|
|
61
|
-
printf("'perms' ", Sty.MAGENTA, "-
|
|
62
|
-
printf("'exit' or 'quit'", Sty.MAGENTA, "-
|
|
63
|
-
printf("'getres' ", Sty.MAGENTA, "-
|
|
64
|
-
printf("'myres' ", Sty.MAGENTA, "-
|
|
65
|
-
printf("'cancelres' ", Sty.MAGENTA, "-
|
|
66
|
-
printf("'resdev' ", Sty.MAGENTA, "-
|
|
67
|
-
printf("'resdev -n' ", Sty.MAGENTA, "-
|
|
58
|
+
printf("'clear' ", Sty.MAGENTA, "- clear terminal", Sty.DEFAULT)
|
|
59
|
+
printf("'getdev' ", Sty.MAGENTA, "- view devices", Sty.DEFAULT)
|
|
60
|
+
printf("'help' or 'h'", Sty.MAGENTA, "- show this help message", Sty.DEFAULT)
|
|
61
|
+
printf("'perms' ", Sty.MAGENTA, "- view permissions", Sty.DEFAULT)
|
|
62
|
+
printf("'exit' or 'quit'", Sty.MAGENTA, "- exit", Sty.DEFAULT)
|
|
63
|
+
printf("'getres' ", Sty.MAGENTA, "- view all reservations", Sty.DEFAULT)
|
|
64
|
+
printf("'myres' ", Sty.MAGENTA, "- view my reservations", Sty.DEFAULT)
|
|
65
|
+
printf("'cancelres' ", Sty.MAGENTA, "- cancel a reservation", Sty.DEFAULT)
|
|
66
|
+
printf("'resdev' ", Sty.MAGENTA, "- reserve a device", Sty.DEFAULT)
|
|
67
|
+
# printf("'resdev -n' ", Sty.MAGENTA, "- naive reserve device", Sty.DEFAULT)
|
|
68
68
|
# printf("'resdev s' ", Sty.MAGENTA, "- Reserve a Device (by single date)", Sty.DEFAULT)
|
|
69
69
|
# check if user is admin
|
|
70
70
|
# if account.get_perms().results['UC'] == 'Admin':
|
|
@@ -311,7 +311,7 @@ def interactive_reserve_next_days(block_minutes=60):
|
|
|
311
311
|
print(f"{idx}. Device ID: {dev_id} Name: {dev_name}")
|
|
312
312
|
|
|
313
313
|
# --- 2) Prompt user to pick a device by 0-based index ---
|
|
314
|
-
device_selection = input("Which device do you want? (enter the 0-based index) ")
|
|
314
|
+
device_selection = input("Which device do you want? (enter the 0-based index): ")
|
|
315
315
|
try:
|
|
316
316
|
device_selection = int(device_selection)
|
|
317
317
|
if device_selection < 0 or device_selection >= len(sorted_device_ids):
|
|
@@ -10,7 +10,7 @@ remoteRF/common/utils/list_string.py,sha256=qsch666vX2e3CZ2W5EdYi62dOk37k1v2yPpH
|
|
|
10
10
|
remoteRF/common/utils/process_arg.py,sha256=J1REqgjm-1daqTBdVASgDd-16y-KneOJpCZXPEOklVk,2971
|
|
11
11
|
remoteRF/core/__init__.py,sha256=XQiCe8kyzM7XLxA883-uDndBmbr-NXo1uvtMJT2h6oA,73
|
|
12
12
|
remoteRF/core/acc_login.py,sha256=UcY3rDLAwHoJ9lYXRfm26z_6yJX0JSoKv-u1mF6n0Gs,49
|
|
13
|
-
remoteRF/core/app.py,sha256=
|
|
13
|
+
remoteRF/core/app.py,sha256=v4hKgFTIB3rybAf1bLW2Al5NZUK9Mrkkbp_MYjLbOXs,21235
|
|
14
14
|
remoteRF/core/grpc_acc.py,sha256=bspLTzblhqYVVEFPwdvXrDZjREBWJVvD_SaT_cja6kU,2441
|
|
15
15
|
remoteRF/core/grpc_client.py,sha256=540JkGsJ8_poN_aRn3FJmuGN4078or06ke00T6A7qEo,3143
|
|
16
16
|
remoteRF/core/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -23,8 +23,8 @@ remoteRF/core/certs/server.key,sha256=F4hVXkENhugrpnHEYNesdvXJByvJ-_9Fxbiqf0Akn-
|
|
|
23
23
|
remoteRF/drivers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
remoteRF/drivers/adalm_pluto/__init__.py,sha256=_IOOeQXR6paCP7Eciw2aeKBUNvZs-jeBTwW8QqUlFyU,33
|
|
25
25
|
remoteRF/drivers/adalm_pluto/pluto_remote.py,sha256=6TTp6v6HCXnULHFh90GVbLDWk7RXY2oZo7iiCl8EZdI,7460
|
|
26
|
-
remoterf-0.0.7.
|
|
27
|
-
remoterf-0.0.7.
|
|
28
|
-
remoterf-0.0.7.
|
|
29
|
-
remoterf-0.0.7.
|
|
30
|
-
remoterf-0.0.7.
|
|
26
|
+
remoterf-0.0.7.30.dist-info/METADATA,sha256=owlm3F-let50ygbRNO87ig88_KrXitA6kJ1eQTEZp1M,4928
|
|
27
|
+
remoterf-0.0.7.30.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
28
|
+
remoterf-0.0.7.30.dist-info/entry_points.txt,sha256=TweiWBwjbPs3G5Xgx3kF7LqP3r-0Iy1BstMoX0mVnTM,64
|
|
29
|
+
remoterf-0.0.7.30.dist-info/top_level.txt,sha256=XQJoVTmAOsHV9qtPSP_QSh0ma4jKxsDkxn4IjM_ZuZk,9
|
|
30
|
+
remoterf-0.0.7.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|