remoterf 0.0.7.29__py3-none-any.whl → 0.0.7.31__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 CHANGED
@@ -13,9 +13,9 @@ account = RemoteRFAccount()
13
13
  session = PromptSession()
14
14
 
15
15
  def welcome():
16
- printf("Welcome to Remote RF Account System. (all times are in PST)", (Sty.BOLD, Sty.BLUE))
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"Remote RF Account System", Sty.BOLD)
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, "- 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)
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):
@@ -358,7 +358,7 @@ def interactive_reserve_next_days(block_minutes=60):
358
358
  slot_start = start_of_day + datetime.timedelta(minutes=current_offset)
359
359
  slot_end = slot_start + datetime.timedelta(minutes=block_size)
360
360
  # Stop if slot_end bleeds into the next calendar day
361
- if slot_end.date() != date:
361
+ if slot_end.date() != date and slot_end.time() != datetime.time.min:
362
362
  break
363
363
  slots.append((slot_start, slot_end))
364
364
  current_offset += block_size
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remoterf
3
- Version: 0.0.7.29
3
+ Version: 0.0.7.31
4
4
  Summary: A python API to remotely access signal centric hardware. Client-side only!
5
5
  Author: Ethan Ge
6
6
  Author-email: ethoGalaxy@gmail.com
@@ -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=WLVEReY7QgEuRUq2LS5H_X9yp4hoQnMoY-DW7BBNR6I,21215
13
+ remoteRF/core/app.py,sha256=4fU6kN73TH0zSv3xD7Wyw6weG6i6X5ttuqpuOdWpBi8,21276
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.29.dist-info/METADATA,sha256=9U7GQ62nPBeBfWMzia1KNZgxyDQbCxWlOzHJZt1C1u4,4928
27
- remoterf-0.0.7.29.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
28
- remoterf-0.0.7.29.dist-info/entry_points.txt,sha256=TweiWBwjbPs3G5Xgx3kF7LqP3r-0Iy1BstMoX0mVnTM,64
29
- remoterf-0.0.7.29.dist-info/top_level.txt,sha256=XQJoVTmAOsHV9qtPSP_QSh0ma4jKxsDkxn4IjM_ZuZk,9
30
- remoterf-0.0.7.29.dist-info/RECORD,,
26
+ remoterf-0.0.7.31.dist-info/METADATA,sha256=15ujUPmimxR631vk0m6Ttb6lGi6jXikNZaOyqmO6NJg,4928
27
+ remoterf-0.0.7.31.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
28
+ remoterf-0.0.7.31.dist-info/entry_points.txt,sha256=TweiWBwjbPs3G5Xgx3kF7LqP3r-0Iy1BstMoX0mVnTM,64
29
+ remoterf-0.0.7.31.dist-info/top_level.txt,sha256=XQJoVTmAOsHV9qtPSP_QSh0ma4jKxsDkxn4IjM_ZuZk,9
30
+ remoterf-0.0.7.31.dist-info/RECORD,,