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