remoterf 0.0.7.36__tar.gz → 0.0.7.38__tar.gz

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.

Files changed (38) hide show
  1. {remoterf-0.0.7.36/src/remoteRF.egg-info → remoterf-0.0.7.38}/PKG-INFO +2 -2
  2. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/setup.py +2 -2
  3. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/app.py +39 -12
  4. {remoterf-0.0.7.36 → remoterf-0.0.7.38/src/remoteRF.egg-info}/PKG-INFO +2 -2
  5. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/LICENSE +0 -0
  6. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/MANIFEST.in +0 -0
  7. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/README.md +0 -0
  8. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/setup.cfg +0 -0
  9. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/__init__.py +0 -0
  10. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/__init__.py +0 -0
  11. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/grpc/__init__.py +0 -0
  12. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/grpc/grpc_pb2.py +0 -0
  13. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/grpc/grpc_pb2_grpc.py +0 -0
  14. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/utils/__init__.py +0 -0
  15. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/utils/ansi_codes.py +0 -0
  16. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/utils/api_token.py +0 -0
  17. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/utils/list_string.py +0 -0
  18. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/common/utils/process_arg.py +0 -0
  19. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/__init__.py +0 -0
  20. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/acc_login.py +0 -0
  21. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/__init__.py +0 -0
  22. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/ca.crt +0 -0
  23. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/ca.key +0 -0
  24. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/cert.pem +0 -0
  25. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/key.pem +0 -0
  26. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/server.crt +0 -0
  27. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/certs/server.key +0 -0
  28. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/grpc_acc.py +0 -0
  29. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/grpc_client.py +0 -0
  30. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/core/version.py +0 -0
  31. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/drivers/__init__.py +0 -0
  32. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/drivers/adalm_pluto/__init__.py +0 -0
  33. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF/drivers/adalm_pluto/pluto_remote.py +0 -0
  34. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF.egg-info/SOURCES.txt +0 -0
  35. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF.egg-info/dependency_links.txt +0 -0
  36. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF.egg-info/entry_points.txt +0 -0
  37. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF.egg-info/requires.txt +0 -0
  38. {remoterf-0.0.7.36 → remoterf-0.0.7.38}/src/remoteRF.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: remoterf
3
- Version: 0.0.7.36
4
- Summary: A python API to remotely access signal centric hardware. Client-side only!
3
+ Version: 0.0.7.38
4
+ Summary: A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.
5
5
  Author: Ethan Ge
6
6
  Author-email: ethoGalaxy@gmail.com
7
7
  Classifier: Programming Language :: Python :: 3
@@ -6,10 +6,10 @@ with open("README.md", "r", encoding="utf-8") as fh:
6
6
 
7
7
  setup(
8
8
  name="remoterf",
9
- version="0.0.7.36",
9
+ version="0.0.7.38",
10
10
  author="Ethan Ge",
11
11
  author_email="ethoGalaxy@gmail.com",
12
- description="A python API to remotely access signal centric hardware. Client-side only!",
12
+ description="A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.",
13
13
  long_description=long_description, # Set the README content here
14
14
  long_description_content_type="text/markdown", # Specify that it's Markdown
15
15
  packages=find_packages(where="src"), # Automatically finds subpackages like core, deviceA, deviceB
@@ -13,7 +13,7 @@ account = RemoteRFAccount()
13
13
  session = PromptSession()
14
14
 
15
15
  def welcome():
16
- printf("Welcome to RemoteRF Reservation System. (all times are in Pacific Time)", (Sty.BOLD, Sty.BLUE))
16
+ printf(f"Welcome to the RemoteRF Platform", (Sty.BOLD, Sty.BLUE), f"\nCurrent version: {print_my_version()} \nAll times are in Pacific Time (Los Angeles)", (Sty.GRAY))
17
17
  try:
18
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':
@@ -49,21 +49,21 @@ def welcome():
49
49
  exit()
50
50
 
51
51
  def title():
52
- printf(f"RemoteRF Reservation System", Sty.BOLD)
52
+ printf(f"Welcome to the RemoteRF Platform", (Sty.BOLD, Sty.BLUE), f"\nCurrent version: {print_my_version()} \nAll times are in Pacific Time (Los Angeles)", (Sty.GRAY))
53
53
  # printf(f"Logged in as: ", Sty.DEFAULT, f'{account.username}', Sty.MAGENTA)
54
- printf(f"Input ", Sty.DEFAULT, "'help' ", Sty.BRIGHT_GREEN, "for avaliable commands.", Sty.DEFAULT)
54
+ printf(f"Input ", Sty.DEFAULT, "'help' ", Sty.BRIGHT_GREEN, "for a list of 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)
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
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
@@ -73,6 +73,33 @@ def clear():
73
73
  os.system('cls' if os.name == 'nt' else 'clear')
74
74
  title()
75
75
 
76
+ def print_my_version():
77
+ import sys
78
+ latest = newest_version_pip("remoterf")
79
+ try:
80
+ import importlib.metadata as md # Py3.8+
81
+ top = __name__.split('.')[0]
82
+ # Try mapping package → distribution (Py3.10+); fall back to same name.
83
+ for dist in getattr(md, "packages_distributions", lambda: {})().get(top, []):
84
+ if (latest == md.version(dist)):
85
+ return f"{md.version(dist)} (LATEST)"
86
+ else:
87
+ return f"{md.version(dist)} (OUTDATED)"
88
+ return md.version(top)
89
+ except Exception:
90
+ # Last resort: __version__ attribute if you define it.
91
+ return getattr(sys.modules.get(__name__.split('.')[0]), "__version__", "unknown")
92
+
93
+ def newest_version_pip(project="remoterf"):
94
+ import sys, subprocess, re
95
+ out = subprocess.check_output(
96
+ [sys.executable, "-m", "pip", "index", "versions", project],
97
+ text=True, stderr=subprocess.STDOUT
98
+ )
99
+ m = re.search(r"(?i)\blatest\s*:\s*([^\s,]+)", out)
100
+ return m.group(1) if m else None
101
+
102
+
76
103
  def reservations():
77
104
  data = account.get_reservations()
78
105
  if 'ace' in data.results:
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: remoterf
3
- Version: 0.0.7.36
4
- Summary: A python API to remotely access signal centric hardware. Client-side only!
3
+ Version: 0.0.7.38
4
+ Summary: A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.
5
5
  Author: Ethan Ge
6
6
  Author-email: ethoGalaxy@gmail.com
7
7
  Classifier: Programming Language :: Python :: 3
File without changes
File without changes
File without changes
File without changes