remotivelabs-cli 0.0.40__py3-none-any.whl → 0.0.41__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.
@@ -175,8 +175,8 @@ def _do_change_playback_mode( # noqa: C901
175
175
  if response is None:
176
176
  return
177
177
  r = json.loads(response.text)
178
- recordings: List[Any] = r["recordings"]
179
- files = list(map(lambda rec: {"recording": rec["fileName"], "namespace": rec["metadata"]["namespace"]}, recordings))
178
+ enabled_recordings: List[Any] = [r for r in r["recordings"] if r["enabled"]]
179
+ files = [{"recording": rec["fileName"], "namespace": rec["metadata"]["namespace"]} for rec in enabled_recordings]
180
180
 
181
181
  broker_name = brokerstr if brokerstr is not None else "personal"
182
182
  response = Rest.handle_get(f"/api/project/{project}/brokers/{broker_name}", return_response=True, allow_status_codes=[404])
@@ -224,7 +224,7 @@ def _track_progress(broker: Broker, repeat: bool, files: List[Any]) -> None:
224
224
  def print_progress(offset: int, total: int, current_mode: str) -> None:
225
225
  p.update(
226
226
  t,
227
- description=f"{(datetime.timedelta(seconds=offset))} " f"/ {(datetime.timedelta(seconds=total))} ({current_mode})",
227
+ description=f"{(datetime.timedelta(seconds=offset))} / {(datetime.timedelta(seconds=total))} ({current_mode})",
228
228
  )
229
229
 
230
230
  broker.listen_on_playback(repeat, files, print_progress)
cli/cloud/rest_helper.py CHANGED
@@ -100,7 +100,7 @@ class RestHelper:
100
100
  allow_status_codes: List[int] | None = None,
101
101
  progress_label: str = "Fetching...",
102
102
  use_progress_indicator: bool = True,
103
- timeout: int = 20,
103
+ timeout: int = 60,
104
104
  ) -> requests.Response:
105
105
  # pylint: disable=R0913
106
106
  # Returns a Response object if succesfull otherwise None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remotivelabs-cli
3
- Version: 0.0.40
3
+ Version: 0.0.41
4
4
  Summary: CLI for operating RemotiveCloud and RemotiveBroker
5
5
  Author: Johan Rask
6
6
  Author-email: johan.rask@remotivelabs.com
@@ -21,8 +21,8 @@ cli/cloud/configs.py,sha256=y7uu9IRJjspSpxREvwRNNfx0N1ypstElaqtpt9tepgY,5117
21
21
  cli/cloud/organisations.py,sha256=BNi4S2em6ruoYUCSuX48zhZS-e31s5u064cBOHGlsgo,785
22
22
  cli/cloud/projects.py,sha256=gXvlaGER3zxBwvjdO3lOa6Fl1xHfQHVCaPdpUNi7G3k,1479
23
23
  cli/cloud/recordings.py,sha256=QrgXJC4csC73Gau-dV_YgL0EZaUzFbc9Nkz_qZHrp70,25067
24
- cli/cloud/recordings_playback.py,sha256=h0NVHTbbX-TxA0IxHDejtIA8uHcPUAQXmxeocYo9UtQ,11584
25
- cli/cloud/rest_helper.py,sha256=yeJ1FEE64VBBhpureRi6Zi7j_BY5dEJP88cQdmz0TEE,11448
24
+ cli/cloud/recordings_playback.py,sha256=dRciL4Oiki6laxRiN8CLiJbsjdjcNpUbv8wxaP91_PA,11614
25
+ cli/cloud/rest_helper.py,sha256=mm7kMPDVapJPL1X-xsn7wpY3wuOuawgzJgij5iKEaiE,11448
26
26
  cli/cloud/resumable_upload.py,sha256=8lEIdncJZoTZzNsQVHH3gm_GunxEmN5JbmWX7awy3p4,3713
27
27
  cli/cloud/sample_recordings.py,sha256=zHfzpo-YxuBaor95PeVJrbBYyPBXS5zOBf2j0lYnT9Q,738
28
28
  cli/cloud/service_account_tokens.py,sha256=7rwR8UoqG3Y1aPqf0lDcwpYd9X3sM7J9qTmL30iUBsY,1814
@@ -42,14 +42,13 @@ cli/settings/cmd.py,sha256=1riCR5oCjAtNEnyE9wnit1NPa-BJJtuFMUDMMtX-b7E,2039
42
42
  cli/settings/core.py,sha256=o9SDCiqYfihHbiepFebpEB5vEMW656vngyjCkXJaaeQ,9209
43
43
  cli/settings/token_file.py,sha256=UUSbnm6zrPS2HJmbyLzfoKWjmHVOh3IjiwDvLPCoyXc,455
44
44
  cli/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
- cli/tools/can/RemotiveLabs.can1.log,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
45
  cli/tools/can/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
46
  cli/tools/can/can.py,sha256=42BwsIOx9NUPkp_rB-0MDqL1tCpeqYVOgWzpixm5ykk,2310
48
47
  cli/tools/tools.py,sha256=jhLfrFDqkmWV3eBAzNwBf6WgDGrz7sOhgVCia36Twn8,232
49
48
  cli/typer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
49
  cli/typer/typer_utils.py,sha256=DmGxdIo0_iK_DYJrZvpFT-tEaQZT1cJtrFR-5VmF_jo,199
51
- remotivelabs_cli-0.0.40.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
52
- remotivelabs_cli-0.0.40.dist-info/METADATA,sha256=P9sv31V9krJhcp9E3df3PjtV1H5xka5O7i7fmbGjuOY,1359
53
- remotivelabs_cli-0.0.40.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
54
- remotivelabs_cli-0.0.40.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
55
- remotivelabs_cli-0.0.40.dist-info/RECORD,,
50
+ remotivelabs_cli-0.0.41.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
51
+ remotivelabs_cli-0.0.41.dist-info/METADATA,sha256=ozc8TuXervf7Pn8INqOiAethU8U0SWRUXZLpQc6hFw4,1359
52
+ remotivelabs_cli-0.0.41.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
53
+ remotivelabs_cli-0.0.41.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
54
+ remotivelabs_cli-0.0.41.dist-info/RECORD,,
File without changes