dayhoff-tools 1.13.4__py3-none-any.whl → 1.13.6__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.
@@ -116,11 +116,22 @@ class StudioManagerClient:
116
116
  Response JSON
117
117
 
118
118
  Raises:
119
- requests.HTTPError: If request fails
119
+ RuntimeError: If request fails with error message from API
120
120
  """
121
121
  url = f"{self.api_url}{path}"
122
122
  response = requests.request(method, url, **kwargs)
123
- response.raise_for_status()
123
+
124
+ # Parse error body if request failed
125
+ if not response.ok:
126
+ try:
127
+ error_body = response.json()
128
+ error_message = error_body.get("error", response.text)
129
+ except Exception:
130
+ error_message = response.text or f"HTTP {response.status_code}"
131
+
132
+ # Raise exception with the actual error message from API
133
+ raise RuntimeError(error_message)
134
+
124
135
  return response.json()
125
136
 
126
137
  # Engine operations
@@ -594,9 +594,16 @@ def engine_status(name_or_id: str, env: Optional[str]):
594
594
  remaining = readiness["estimated_time_remaining_seconds"]
595
595
  click.echo(f"Estimated Time Remaining: {remaining}s")
596
596
 
597
+ # Show attached studios (always, even without idle state)
598
+ attached_studios = status_data.get("attached_studios", [])
599
+ if attached_studios:
600
+ studio_names = ", ".join([f"\033[35m{s.get('user', 'unknown')}\033[0m" for s in attached_studios])
601
+ click.echo(f"\nAttached Studios: {studio_names}")
602
+ else:
603
+ click.echo(f"\nAttached Studios: None")
604
+
597
605
  # Show idle state (only for running engines) - always detailed per user request
598
606
  if status_data.get("idle_state"):
599
- attached_studios = status_data.get("attached_studios", [])
600
607
  click.echo(
601
608
  f"\n{format_idle_state(status_data['idle_state'], detailed=True, attached_studios=attached_studios)}"
602
609
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dayhoff-tools
3
- Version: 1.13.4
3
+ Version: 1.13.6
4
4
  Summary: Common tools for all the repos at Dayhoff Labs
5
5
  Author: Daniel Martin-Alarcon
6
6
  Author-email: dma@dayhofflabs.com
@@ -11,10 +11,10 @@ dayhoff_tools/cli/engine1/engine_management.py,sha256=s_H3FtMlKsdfzR8pwV-j2W2QX-
11
11
  dayhoff_tools/cli/engine1/shared.py,sha256=Ecx6I1jtzmxQDn3BezKpgpQ4SJeZf4SZjUCLg-67p80,16844
12
12
  dayhoff_tools/cli/engine1/studio_commands.py,sha256=VwTQujz32-uMcYusDRE73SdzRpgvIkv7ZAF4zRv6AzA,30266
13
13
  dayhoff_tools/cli/engines_studios/__init__.py,sha256=E6aG0C6qjJnJuClemSKRFlYvLUL49MQZOvfqNQ7SDKs,159
14
- dayhoff_tools/cli/engines_studios/api_client.py,sha256=9I55_Ns8VHxndGjvSt_c5ZohSqMOeywQlLjyuoDEqCQ,13039
14
+ dayhoff_tools/cli/engines_studios/api_client.py,sha256=McZyyh5H36gkrK6s6Z7s9hl7yLLSLrHjsBtR4Opg6Ko,13491
15
15
  dayhoff_tools/cli/engines_studios/auth.py,sha256=rwetV5hp4jSvK8FyvKgXCnezLOZx1aW8oiSDc6U83iE,5189
16
16
  dayhoff_tools/cli/engines_studios/engine-studio-cli.md,sha256=or4k7ZZKPMTkvu67PdcUTE2_cxjnj0HQxxTuJZR1uiA,29924
17
- dayhoff_tools/cli/engines_studios/engine_commands.py,sha256=ZvUt9Gfl1-mhTu-jWAP3w6C_JVcrwOqfJV_jG0-_YGA,37330
17
+ dayhoff_tools/cli/engines_studios/engine_commands.py,sha256=sGxm1WG06WjzykIIeWi6cj2CjomBrVoJf-LNKOzAxCk,37669
18
18
  dayhoff_tools/cli/engines_studios/progress.py,sha256=SMahdG2YmO5bEPSONrfAXVTdS6m_69Ep02t3hc2DdKQ,9264
19
19
  dayhoff_tools/cli/engines_studios/simulators/cli-simulators.md,sha256=FZJl6nehdr2Duht2cx3yijcak0yKyOaHTrTzvFTAfZs,4976
20
20
  dayhoff_tools/cli/engines_studios/simulators/demo.sh,sha256=8tYABSCxLNXqGs-4r071V9mpKNZ5DTQ34WZ-v3d5s94,5364
@@ -48,7 +48,7 @@ dayhoff_tools/intake/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJq
48
48
  dayhoff_tools/logs.py,sha256=DKdeP0k0kliRcilwvX0mUB2eipO5BdWUeHwh-VnsICs,838
49
49
  dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
50
50
  dayhoff_tools/warehouse.py,sha256=UETBtZD3r7WgvURqfGbyHlT7cxoiVq8isjzMuerKw8I,24475
51
- dayhoff_tools-1.13.4.dist-info/METADATA,sha256=sqkHAmS0J1THxON0ivHLsbJTVrfi5i8rkScs1WtD9qc,2980
52
- dayhoff_tools-1.13.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
53
- dayhoff_tools-1.13.4.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
54
- dayhoff_tools-1.13.4.dist-info/RECORD,,
51
+ dayhoff_tools-1.13.6.dist-info/METADATA,sha256=zMLk8JgTbcMVO2r1RVgQKrTdjRvmS-r-6rG96L3kHq4,2980
52
+ dayhoff_tools-1.13.6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
53
+ dayhoff_tools-1.13.6.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
54
+ dayhoff_tools-1.13.6.dist-info/RECORD,,