remotivelabs-cli 0.0.38__py3-none-any.whl → 0.0.39__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/broker/signals.py CHANGED
@@ -19,6 +19,7 @@ from .lib.broker import Broker, SubscribableSignal
19
19
 
20
20
  app = typer.Typer(help=help) # type: ignore
21
21
 
22
+ DEFAULT_GRPC_URL = "http://localhost:50051"
22
23
 
23
24
  # signal_values:list = list()
24
25
 
@@ -33,7 +34,7 @@ signal_values: Dict[Any, Any] = {}
33
34
 
34
35
  @app.command(name="list")
35
36
  def list_signals(
36
- url: str = typer.Option(..., help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
37
+ url: str = typer.Option(DEFAULT_GRPC_URL, help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
37
38
  api_key: str = typer.Option(None, help="Cloud Broker API-KEY or access token", envvar="REMOTIVE_BROKER_API_KEY"),
38
39
  name_starts_with: Union[str, None] = typer.Option(None, help="Signal name prefix to include"),
39
40
  name_ends_with: Union[str, None] = typer.Option(None, help="Signal name suffix to include"),
@@ -63,7 +64,7 @@ def read_scripted_code_file(file_path: Path) -> bytes:
63
64
 
64
65
  @app.command()
65
66
  def subscribe( # noqa: C901
66
- url: str = typer.Option(..., help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
67
+ url: str = typer.Option(DEFAULT_GRPC_URL, help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
67
68
  api_key: str = typer.Option(None, help="Cloud Broker API-KEY or access token", envvar="REMOTIVE_BROKER_API_KEY"),
68
69
  signal: List[str] = typer.Option([], help="Signal names to subscribe to, mandatory when not using script"),
69
70
  script: Path = typer.Option(
@@ -186,7 +187,7 @@ def subscribe( # noqa: C901
186
187
 
187
188
  @app.command(help="List namespaces on broker")
188
189
  def namespaces(
189
- url: str = typer.Option(..., help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
190
+ url: str = typer.Option(DEFAULT_GRPC_URL, help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
190
191
  api_key: str = typer.Option(None, help="Cloud Broker API-KEY or access token", envvar="REMOTIVE_BROKER_API_KEY"),
191
192
  ) -> None:
192
193
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remotivelabs-cli
3
- Version: 0.0.38
3
+ Version: 0.0.39
4
4
  Summary: CLI for operating RemotiveCloud and RemotiveBroker
5
5
  Author: Johan Rask
6
6
  Author-email: johan.rask@remotivelabs.com
@@ -9,7 +9,7 @@ cli/broker/licenses.py,sha256=Ddl243re8RoeP9CoWWbIzwDePQ9l8r7ixmbd1gqn8f0,3973
9
9
  cli/broker/playback.py,sha256=hdDKXGPuIE3gcT-kgQltgn5jsPzK19Yh9hiNcgtkLX0,3992
10
10
  cli/broker/record.py,sha256=Oa6hUpS0Dgnt0f6Ig33vl0Jy8wN7wMXfemaxXWjRVoQ,1414
11
11
  cli/broker/scripting.py,sha256=8577_C6siOk90s4G1ItIfAoFIUAkS0ItUl5kqR0cD-k,3792
12
- cli/broker/signals.py,sha256=BHNWH9o1msPJQgw7bplg7W1JNtB4Us_abQp5H8Y3pRY,8079
12
+ cli/broker/signals.py,sha256=Z35TZXgPE478Kr_wPnsKgRYmSydGCSe_NMGdJFBKmus,8162
13
13
  cli/cloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  cli/cloud/auth/__init__.py,sha256=MtQ01-n8CgZb9Y_SvxwZUgj44Yo0dFAU3_XwhQiUYtw,54
15
15
  cli/cloud/auth/cmd.py,sha256=Lew9gJDC4pU2Hvbrbe4ZPoanphN0CiNwbpLAo9R00gM,1622
@@ -46,8 +46,8 @@ cli/tools/can/RemotiveLabs.can1.log,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
46
46
  cli/tools/can/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  cli/tools/can/can.py,sha256=8uATViSFlpkdSiIm4fzbuQi1_m7V9Pym-K17TaJQRHU,2262
48
48
  cli/tools/tools.py,sha256=0KU-hXR1f9xHP4BOG9A9eXfmICLmNuQCOU8ueF6iGg0,198
49
- remotivelabs_cli-0.0.38.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
50
- remotivelabs_cli-0.0.38.dist-info/METADATA,sha256=4l6EOpR6IQM-uecpwJrIpqoF2SVbZaN6qQ1TimXItfQ,1359
51
- remotivelabs_cli-0.0.38.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
52
- remotivelabs_cli-0.0.38.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
53
- remotivelabs_cli-0.0.38.dist-info/RECORD,,
49
+ remotivelabs_cli-0.0.39.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
50
+ remotivelabs_cli-0.0.39.dist-info/METADATA,sha256=y4YdQWFEDOCoWJtrg8903WMCbqId_8NuvK4e6yPQzzM,1359
51
+ remotivelabs_cli-0.0.39.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
52
+ remotivelabs_cli-0.0.39.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
53
+ remotivelabs_cli-0.0.39.dist-info/RECORD,,