RemoteRF 0.0.4__tar.gz → 0.0.5__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.
Files changed (37) hide show
  1. {remoterf-0.0.4/src/remoteRF.egg-info → remoterf-0.0.5}/PKG-INFO +1 -1
  2. {remoterf-0.0.4 → remoterf-0.0.5}/setup.py +1 -1
  3. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/drivers/adalm_pluto/pluto_remote.py +11 -1
  4. {remoterf-0.0.4 → remoterf-0.0.5/src/remoteRF.egg-info}/PKG-INFO +1 -1
  5. {remoterf-0.0.4 → remoterf-0.0.5}/LICENSE +0 -0
  6. {remoterf-0.0.4 → remoterf-0.0.5}/MANIFEST.in +0 -0
  7. {remoterf-0.0.4 → remoterf-0.0.5}/README.md +0 -0
  8. {remoterf-0.0.4 → remoterf-0.0.5}/setup.cfg +0 -0
  9. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/__init__.py +0 -0
  10. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/__init__.py +0 -0
  11. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/grpc/__init__.py +0 -0
  12. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/grpc/grpc_pb2.py +0 -0
  13. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/grpc/grpc_pb2_grpc.py +0 -0
  14. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/utils/__init__.py +0 -0
  15. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/utils/ansi_codes.py +0 -0
  16. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/utils/api_token.py +0 -0
  17. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/utils/list_string.py +0 -0
  18. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/common/utils/process_arg.py +0 -0
  19. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/__init__.py +0 -0
  20. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/acc_login.py +0 -0
  21. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/app.py +0 -0
  22. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/__init__.py +0 -0
  23. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/ca.crt +0 -0
  24. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/ca.key +0 -0
  25. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/cert.pem +0 -0
  26. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/key.pem +0 -0
  27. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/server.crt +0 -0
  28. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/certs/server.key +0 -0
  29. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/grpc_acc.py +0 -0
  30. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/core/grpc_client.py +0 -0
  31. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/drivers/__init__.py +0 -0
  32. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF/drivers/adalm_pluto/__init__.py +0 -0
  33. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF.egg-info/SOURCES.txt +0 -0
  34. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF.egg-info/dependency_links.txt +0 -0
  35. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF.egg-info/entry_points.txt +0 -0
  36. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF.egg-info/requires.txt +0 -0
  37. {remoterf-0.0.4 → remoterf-0.0.5}/src/remoteRF.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remoteRF
3
- Version: 0.0.4
3
+ Version: 0.0.5
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="remoteRF",
5
- version="0.0.4",
5
+ version="0.0.5",
6
6
  author="Ethan Ge",
7
7
  author_email="ethoGalaxy@gmail.com",
8
8
  description="A python API to remotely access signal centric hardware. Client-side only!",
@@ -1,6 +1,7 @@
1
1
  from ...core.grpc_client import rpc_client
2
2
  from ...common.utils import *
3
3
  from ...common.grpc import grpc_pb2
4
+ from ...core.grpc_client import get_tcp_calls
4
5
 
5
6
  class rx_def:
6
7
  pass
@@ -16,14 +17,18 @@ class ad9364(rx_tx_def):
16
17
 
17
18
  class Pluto: # client
18
19
 
19
- def __init__(self, token=''):
20
+ def __init__(self, token='', debug=False):
20
21
  self.token = token
21
22
  # self.try_set(function_name="ip", value=grpc_pb2.Argument(string_value=ip))
22
23
 
24
+ if debug:
25
+ print("Pluto Remote Client Initialized.")
26
+
23
27
  def api_token(self, token:str) -> None:
24
28
  self.token = token
25
29
 
26
30
  def try_get(self, *, function_name):
31
+ self.test_print() # For debugging purposes
27
32
  try:
28
33
  return rpc_client(function_name=f"Pluto:{function_name}:GET", args={'a':map_arg(self.token)}).results[function_name]
29
34
  except Exception as e:
@@ -31,10 +36,15 @@ class Pluto: # client
31
36
  return None
32
37
 
33
38
  def try_set(self, *, function_name, value):
39
+ self.test_print() # For debugging purposes
34
40
  try:
35
41
  rpc_client(function_name=f"Pluto:{function_name}:SET", args={function_name: value, 'a':map_arg(self.token)})
36
42
  except Exception as e:
37
43
  input(f"Error: {e}\nHit enter to continue...")
44
+
45
+ def test_print(self):
46
+ if get_tcp_calls() % 50 == 0:
47
+ print(f'TCP Call Number: {get_tcp_calls()}')
38
48
 
39
49
  #region ad9364
40
50
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remoteRF
3
- Version: 0.0.4
3
+ Version: 0.0.5
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
File without changes
File without changes
File without changes
File without changes