RemoteRF 0.0.7.7__tar.gz → 0.0.7.8__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.7.7/src/remoteRF.egg-info → remoterf-0.0.7.8}/PKG-INFO +1 -1
  2. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/setup.py +1 -1
  3. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/drivers/adalm_pluto/pluto_remote.py +32 -7
  4. {remoterf-0.0.7.7 → remoterf-0.0.7.8/src/remoteRF.egg-info}/PKG-INFO +1 -1
  5. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/LICENSE +0 -0
  6. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/MANIFEST.in +0 -0
  7. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/README.md +0 -0
  8. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/setup.cfg +0 -0
  9. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/__init__.py +0 -0
  10. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/__init__.py +0 -0
  11. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/__init__.py +0 -0
  12. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/grpc_pb2.py +0 -0
  13. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/grpc_pb2_grpc.py +0 -0
  14. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/__init__.py +0 -0
  15. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/ansi_codes.py +0 -0
  16. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/api_token.py +0 -0
  17. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/list_string.py +0 -0
  18. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/process_arg.py +0 -0
  19. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/__init__.py +0 -0
  20. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/acc_login.py +0 -0
  21. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/app.py +0 -0
  22. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/__init__.py +0 -0
  23. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/ca.crt +0 -0
  24. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/ca.key +0 -0
  25. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/cert.pem +0 -0
  26. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/key.pem +0 -0
  27. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/server.crt +0 -0
  28. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/server.key +0 -0
  29. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/grpc_acc.py +0 -0
  30. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/grpc_client.py +0 -0
  31. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/drivers/__init__.py +0 -0
  32. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/drivers/adalm_pluto/__init__.py +0 -0
  33. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/SOURCES.txt +0 -0
  34. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/dependency_links.txt +0 -0
  35. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/entry_points.txt +0 -0
  36. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/requires.txt +0 -0
  37. {remoterf-0.0.7.7 → remoterf-0.0.7.8}/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.7.7
3
+ Version: 0.0.7.8
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
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
6
6
 
7
7
  setup(
8
8
  name="remoteRF",
9
- version="0.0.7.7",
9
+ version="0.0.7.8",
10
10
  author="Ethan Ge",
11
11
  author_email="ethoGalaxy@gmail.com",
12
12
  description="A python API to remotely access signal centric hardware. Client-side only!",
@@ -15,6 +15,34 @@ def try_set(function_name, value, token):
15
15
  rpc_client(function_name=f"Pluto:{function_name}:SET", args={function_name: map_arg(value), 'a':map_arg(token)})
16
16
  except Exception as e:
17
17
  input(f"Error: {e}\nHit enter to continue...")
18
+
19
+ def try_call_0_arg(function_name, token): # 0 argument call
20
+ try:
21
+ response = rpc_client(
22
+ function_name=f"Pluto:{function_name}:CALL0",
23
+ args={
24
+ 'a': map_arg(token)
25
+ }
26
+ )
27
+ return unmap_arg(response.results[function_name])
28
+ except Exception as e:
29
+ input(f"Error: {e}\nHit enter to continue...")
30
+ return None
31
+
32
+ def try_call_1_arg(function_name, arg, token): # 1 argument call
33
+ try:
34
+ response = rpc_client(
35
+ function_name=f"Pluto:{function_name}:CALL1",
36
+ args={
37
+ 'a': map_arg(token),
38
+ 'arg1': map_arg(arg)
39
+ }
40
+ )
41
+ # The server should return something like {function_name: <something>}
42
+ return unmap_arg(response.results[function_name])
43
+ except Exception as e:
44
+ input(f"Error: {e}\nHit enter to continue...")
45
+ return None
18
46
 
19
47
  class rx_def:
20
48
  pass
@@ -153,12 +181,10 @@ class Pluto: # client
153
181
  try_set("tx_cyclic_buffer_size", value, self.token)
154
182
 
155
183
  def tx_destroy_buffer(self):
156
- """tx_destroy_buffer: Destroy cyclic buffer"""
157
- return try_get("tx_destroy_buffer()", self.token)
184
+ try_call_0_arg("tx_destroy_buffer", self.token)
158
185
 
159
186
  def rx_destroy_buffer(self):
160
- """rx_destroy_buffer: Destroy cyclic buffer"""
161
- return try_get("rx_destroy_buffer()", self.token)
187
+ try_call_0_arg("rx_destroy_buffer", self.token)
162
188
 
163
189
  #endregion
164
190
 
@@ -179,9 +205,8 @@ class Pluto: # client
179
205
 
180
206
  #region tx_def
181
207
 
182
- @property
183
- def tx(self):
184
- return try_get("tx", self.token)
208
+ def tx(self, value):
209
+ return try_call_1_arg("tx", value, self.token)
185
210
 
186
211
  @tx.setter
187
212
  def tx(self, value):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remoteRF
3
- Version: 0.0.7.7
3
+ Version: 0.0.7.8
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