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.
- {remoterf-0.0.7.7/src/remoteRF.egg-info → remoterf-0.0.7.8}/PKG-INFO +1 -1
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/setup.py +1 -1
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/drivers/adalm_pluto/pluto_remote.py +32 -7
- {remoterf-0.0.7.7 → remoterf-0.0.7.8/src/remoteRF.egg-info}/PKG-INFO +1 -1
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/LICENSE +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/MANIFEST.in +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/README.md +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/setup.cfg +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/grpc_pb2.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/grpc/grpc_pb2_grpc.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/ansi_codes.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/api_token.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/list_string.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/common/utils/process_arg.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/acc_login.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/app.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/ca.crt +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/ca.key +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/cert.pem +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/key.pem +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/server.crt +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/certs/server.key +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/grpc_acc.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/core/grpc_client.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/drivers/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF/drivers/adalm_pluto/__init__.py +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/SOURCES.txt +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/dependency_links.txt +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/entry_points.txt +0 -0
- {remoterf-0.0.7.7 → remoterf-0.0.7.8}/src/remoteRF.egg-info/requires.txt +0 -0
- {remoterf-0.0.7.7 → 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
|
|
@@ -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
|
-
""
|
|
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
|
-
""
|
|
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
|
-
|
|
183
|
-
|
|
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):
|
|
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
|