remotivelabs-cli 0.1.0a3__py3-none-any.whl → 0.1.2__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/cloud/auth/login.py CHANGED
@@ -312,5 +312,6 @@ def login(headless: bool = False) -> bool: # noqa: C901, PLR0912, PLR0915
312
312
  else:
313
313
  httpd.serve_forever()
314
314
  create_personal_token()
315
+ prompt_to_set_org()
315
316
 
316
317
  return True
cli/cloud/recordings.py CHANGED
@@ -137,14 +137,13 @@ def mount( # noqa: C901
137
137
  r = Rest.handle_get(url=f"/api/project/{project}/brokers/personal", return_response=True, allow_status_codes=[404])
138
138
 
139
139
  if r.status_code == 200:
140
- broker = r.json()["shortName"]
141
-
140
+ broker_info = r.json()
141
+ broker = broker_info["shortName"]
142
142
  elif r.status_code == 404:
143
143
  r = do_start("personal", project, "", return_response=True)
144
144
  if r.status_code != 200:
145
145
  print(r.text)
146
146
  sys.exit(0)
147
- broker = r.json()["shortName"]
148
147
  else:
149
148
  sys.stderr.write(f"Got http status code {r.status_code}")
150
149
  raise typer.Exit(0)
@@ -154,7 +153,6 @@ def mount( # noqa: C901
154
153
  if r.status_code == 404:
155
154
  if ensure_broker_started:
156
155
  r = do_start(broker, project, "", return_response=True)
157
-
158
156
  if r.status_code != 200:
159
157
  print(r.text)
160
158
  sys.exit(1)
@@ -164,6 +162,9 @@ def mount( # noqa: C901
164
162
  elif r.status_code != 200:
165
163
  sys.stderr.write(f"Got http status code {r.status_code}")
166
164
  raise typer.Exit(1)
165
+
166
+ broker_info = r.json()
167
+ broker = broker_info["shortName"]
167
168
  broker_config_query = ""
168
169
  if transformation_name != "default":
169
170
  broker_config_query = f"?brokerConfigName={transformation_name}"
@@ -174,7 +175,8 @@ def mount( # noqa: C901
174
175
  return_response=True,
175
176
  progress_label="Preparing recording on broker...",
176
177
  )
177
- print("Successfully mounted recording on broker")
178
+ err_console.print("Successfully mounted recording on broker")
179
+ print(json.dumps(broker_info))
178
180
 
179
181
 
180
182
  @app.command(help="Downloads the specified recording file to disk")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: remotivelabs-cli
3
- Version: 0.1.0a3
3
+ Version: 0.1.2
4
4
  Summary: CLI for operating RemotiveCloud and RemotiveBroker
5
5
  Author: Johan Rask
6
6
  Author-email: johan.rask@remotivelabs.com
@@ -15,14 +15,14 @@ cli/broker/signals.py,sha256=MFj_bOLIxHY1v3XPkKk6n8U3JLaY8nrXHahRQaVse6s,8207
15
15
  cli/cloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  cli/cloud/auth/__init__.py,sha256=MtQ01-n8CgZb9Y_SvxwZUgj44Yo0dFAU3_XwhQiUYtw,54
17
17
  cli/cloud/auth/cmd.py,sha256=aOvbrzNb7moClgmde25T0coBs8Ge696xUB_w6qfvN8I,2920
18
- cli/cloud/auth/login.py,sha256=kaUxKfXXk392s2mMM8d-5wuhWuIqVNK6PKLSu-pxMbw,11444
18
+ cli/cloud/auth/login.py,sha256=sAlUeBVypK4ibBR9gdU0DMUmwvxqOjvFNTLUHPseyCE,11476
19
19
  cli/cloud/auth_tokens.py,sha256=XHXrCwgK_akrCbFxcxtDr7GDM9cd-T_s40PrRovY4Lk,12344
20
20
  cli/cloud/brokers.py,sha256=QTA9bmaK06LKEccF6IBgWBonC4VFrKwFQBsACX_IzYw,3896
21
21
  cli/cloud/cloud_cli.py,sha256=q-oiaLcKC-BRamXfIFGn-BskRmJ3utA7-tI39lSs3Cs,1309
22
22
  cli/cloud/configs.py,sha256=uv46nUoGXOr99smQHahv_ageDv6bGYfUnlRlxcS5D9A,5125
23
23
  cli/cloud/organisations.py,sha256=QBD2RnCbpZ9XQrTIcvD74o321JHNnKxDleKlYmSZEuI,4116
24
24
  cli/cloud/projects.py,sha256=ecn5Y8UKhgYnHSJQACUk1GNZt9EF8ug4B-6MCr8rZqM,1487
25
- cli/cloud/recordings.py,sha256=B0XOj8LIm3hBqBzVKPLPvPUCXCKZBTEISssrijK481w,24855
25
+ cli/cloud/recordings.py,sha256=In2fKX668CPsEVBAy7zkU92lEnmu3UcnqiVrqsvLNDQ,24961
26
26
  cli/cloud/recordings_playback.py,sha256=XZoVyujufMQFN2v_Nwsf8tOqn61yLEpAf2z_u5uhXik,11532
27
27
  cli/cloud/resumable_upload.py,sha256=8lEIdncJZoTZzNsQVHH3gm_GunxEmN5JbmWX7awy3p4,3713
28
28
  cli/cloud/sample_recordings.py,sha256=RmuT-a2iMwGj3LXVcPkV5l66uFcf7nyWyJciUjnYkk4,721
@@ -52,8 +52,8 @@ cli/typer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  cli/typer/typer_utils.py,sha256=8SkvG9aKkfK9fTRsLD9pOBtWn9XSwtOXWg2RAk9FhOI,708
53
53
  cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  cli/utils/rest_helper.py,sha256=b_FJY6MxnFSqo11qaHxkBFHfVlKf7Zj28Uxv9Oj7XY4,14141
55
- remotivelabs_cli-0.1.0a3.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
56
- remotivelabs_cli-0.1.0a3.dist-info/METADATA,sha256=2nOuSlIEviS1n_bssUYSEKr0pbE67iJ85J2TYvwD9kI,1430
57
- remotivelabs_cli-0.1.0a3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
58
- remotivelabs_cli-0.1.0a3.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
59
- remotivelabs_cli-0.1.0a3.dist-info/RECORD,,
55
+ remotivelabs_cli-0.1.2.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
56
+ remotivelabs_cli-0.1.2.dist-info/METADATA,sha256=Ln8gpBfVhzI2AHb9zRgd6AmJ32Q0nUqgW2fz1qpwidY,1428
57
+ remotivelabs_cli-0.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
58
+ remotivelabs_cli-0.1.2.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
59
+ remotivelabs_cli-0.1.2.dist-info/RECORD,,