RemoteRF 0.0.7.6__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.
- {remoterf-0.0.7.6/src/remoteRF.egg-info → remoterf-0.0.7.8}/PKG-INFO +1 -1
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/setup.py +1 -1
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/drivers/adalm_pluto/pluto_remote.py +33 -10
- {remoterf-0.0.7.6 → remoterf-0.0.7.8/src/remoteRF.egg-info}/PKG-INFO +1 -1
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/LICENSE +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/MANIFEST.in +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/README.md +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/setup.cfg +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/grpc_pb2.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/grpc_pb2_grpc.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/utils/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/utils/ansi_codes.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/utils/api_token.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/utils/list_string.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/common/utils/process_arg.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/acc_login.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/app.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/ca.crt +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/ca.key +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/cert.pem +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/key.pem +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/server.crt +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/certs/server.key +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/grpc_acc.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/core/grpc_client.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/drivers/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF/drivers/adalm_pluto/__init__.py +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF.egg-info/SOURCES.txt +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF.egg-info/dependency_links.txt +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF.egg-info/entry_points.txt +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF.egg-info/requires.txt +0 -0
- {remoterf-0.0.7.6 → remoterf-0.0.7.8}/src/remoteRF.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
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
|
|
@@ -152,15 +180,11 @@ class Pluto: # client
|
|
|
152
180
|
def tx_cyclic_buffer(self, value):
|
|
153
181
|
try_set("tx_cyclic_buffer_size", value, self.token)
|
|
154
182
|
|
|
155
|
-
@property
|
|
156
183
|
def tx_destroy_buffer(self):
|
|
157
|
-
""
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
@property
|
|
184
|
+
try_call_0_arg("tx_destroy_buffer", self.token)
|
|
185
|
+
|
|
161
186
|
def rx_destroy_buffer(self):
|
|
162
|
-
""
|
|
163
|
-
return try_get("rx_destroy_buffer()", self.token)
|
|
187
|
+
try_call_0_arg("rx_destroy_buffer", self.token)
|
|
164
188
|
|
|
165
189
|
#endregion
|
|
166
190
|
|
|
@@ -181,9 +205,8 @@ class Pluto: # client
|
|
|
181
205
|
|
|
182
206
|
#region tx_def
|
|
183
207
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return try_get("tx", self.token)
|
|
208
|
+
def tx(self, value):
|
|
209
|
+
return try_call_1_arg("tx", value, self.token)
|
|
187
210
|
|
|
188
211
|
@tx.setter
|
|
189
212
|
def tx(self, value):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|