remotivelabs-cli 0.0.22__py3-none-any.whl → 0.0.24__py3-none-any.whl

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.
cli/connect/connect.py CHANGED
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import json
3
4
  import sys
4
5
  from pathlib import Path
5
6
 
@@ -94,7 +95,13 @@ def protopie(
94
95
  if len(signal) > 0:
95
96
  signals_to_subscribe_to = list(map(to_subscribable_signal, signal))
96
97
  else:
97
- signals_to_subscribe_to = None
98
+ with open(config, "r") as f:
99
+ c = json.load(f)
100
+ s = c["subscription"]
101
+ ss = []
102
+ for entry in s.keys():
103
+ ss.append(SubscribableSignal(namespace=s[entry]["namespace"], name=entry))
104
+ signals_to_subscribe_to = ss
98
105
 
99
106
  protopie.do_connect(
100
107
  address=pp_connect_host,
@@ -3,6 +3,7 @@ from __future__ import annotations
3
3
  import json
4
4
  import os
5
5
  import time
6
+ import traceback
6
7
  from pathlib import Path
7
8
  from typing import Dict, List, Union
8
9
 
@@ -132,6 +133,7 @@ def grpc_connect(on_signals, signals_to_subscribe_to: Union[List[SignalIdentifie
132
133
  subscription.cancel()
133
134
 
134
135
  except Exception as e:
136
+ print(traceback.format_exc())
135
137
  err_console.print(f":boom: {e}")
136
138
  # exit(1)
137
139
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remotivelabs-cli
3
- Version: 0.0.22
3
+ Version: 0.0.24
4
4
  Summary: CLI for operating RemotiveCloud and RemotiveBroker
5
5
  Author: Johan Rask
6
6
  Author-email: johan.rask@remotivelabs.com
@@ -25,8 +25,8 @@ cli/cloud/sample_recordings.py,sha256=g1X6JTxvzWInSP9R1BJsDmL4WqvpEKqjdJR_xT4bo1
25
25
  cli/cloud/service_account_tokens.py,sha256=7vjoMd6Xq7orWCUP7TVUVa86JA0OiX8O10NZcHUE6rM,2294
26
26
  cli/cloud/service_accounts.py,sha256=GCYdYPnP5uWVsg1bTIS67CmoPWDng5dupJHmlThrJ80,1606
27
27
  cli/connect/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
28
- cli/connect/connect.py,sha256=xeQLgbLvwB-l2pL6ulbOkYeMQZb5B_rLvy7oQVNa78k,3649
29
- cli/connect/protopie/protopie.py,sha256=8gRBwanAXL7hUYycpZUNV0JodM-jCRMMhC9G0LIZNzs,5720
28
+ cli/connect/connect.py,sha256=jK9J_wK7De9HdS1cWHpQYjARgLEoDcPpcV8cTo2KlcY,3905
29
+ cli/connect/protopie/protopie.py,sha256=IGr-KxDWVA_Z-lUV54xpPy0yV5Q8N5Atyp_uoFykcXs,5775
30
30
  cli/errors.py,sha256=sOjYasWbwqu2IcK4MvrG4ddpQ7idLGxiFYOxjhdsahM,1319
31
31
  cli/remotive.py,sha256=KKahzVZACa3MIBqt2lZDiSsDOTmoZIdNeKex8LJR8ZQ,1645
32
32
  cli/requirements.txt,sha256=Tjpv2HSAPemgKC-eJbwDw-gvAdklfJ18LixRcwzvQIU,78
@@ -35,8 +35,8 @@ cli/tools/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
35
  cli/tools/can/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
36
36
  cli/tools/can/can.py,sha256=kSd1c-nxxXyeKkm19oDILiDBZsKOcpjsUT0T3xox5Qs,2172
37
37
  cli/tools/tools.py,sha256=LwQdWMcJ19pCyKUsVfSB2B3R6ui61NxxFWP0Nrnd5Jk,198
38
- remotivelabs_cli-0.0.22.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
39
- remotivelabs_cli-0.0.22.dist-info/METADATA,sha256=lqWaIXmptY_n1sGty4KRqMp7-TBH-MnuwHr6Gwnhdxk,1224
40
- remotivelabs_cli-0.0.22.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
- remotivelabs_cli-0.0.22.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
42
- remotivelabs_cli-0.0.22.dist-info/RECORD,,
38
+ remotivelabs_cli-0.0.24.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
39
+ remotivelabs_cli-0.0.24.dist-info/METADATA,sha256=376RvVFRj7s-wIYVbeK8XUi0Ogj8rOIf4jtgwSh-Zms,1224
40
+ remotivelabs_cli-0.0.24.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
+ remotivelabs_cli-0.0.24.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
42
+ remotivelabs_cli-0.0.24.dist-info/RECORD,,