orgo 0.0.18__py3-none-any.whl → 0.0.19__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.
orgo/api/client.py
CHANGED
|
@@ -51,16 +51,36 @@ class ApiClient:
|
|
|
51
51
|
def get_status(self, project_id: str) -> Dict[str, Any]:
|
|
52
52
|
return self._request("GET", f"projects/by-name/{project_id}")
|
|
53
53
|
|
|
54
|
-
def start_computer(self,
|
|
54
|
+
def start_computer(self, project_name: str) -> Dict[str, Any]:
|
|
55
|
+
# Get the actual project ID from the name
|
|
56
|
+
project = self.get_status(project_name)
|
|
57
|
+
project_id = project.get("id")
|
|
58
|
+
if not project_id:
|
|
59
|
+
raise ValueError(f"Could not find ID for project {project_name}")
|
|
55
60
|
return self._request("POST", f"projects/{project_id}/start")
|
|
56
61
|
|
|
57
|
-
def stop_computer(self,
|
|
62
|
+
def stop_computer(self, project_name: str) -> Dict[str, Any]:
|
|
63
|
+
# Get the actual project ID from the name
|
|
64
|
+
project = self.get_status(project_name)
|
|
65
|
+
project_id = project.get("id")
|
|
66
|
+
if not project_id:
|
|
67
|
+
raise ValueError(f"Could not find ID for project {project_name}")
|
|
58
68
|
return self._request("POST", f"projects/{project_id}/stop")
|
|
59
69
|
|
|
60
|
-
def restart_computer(self,
|
|
70
|
+
def restart_computer(self, project_name: str) -> Dict[str, Any]:
|
|
71
|
+
# Get the actual project ID from the name
|
|
72
|
+
project = self.get_status(project_name)
|
|
73
|
+
project_id = project.get("id")
|
|
74
|
+
if not project_id:
|
|
75
|
+
raise ValueError(f"Could not find ID for project {project_name}")
|
|
61
76
|
return self._request("POST", f"projects/{project_id}/restart")
|
|
62
77
|
|
|
63
|
-
def delete_computer(self,
|
|
78
|
+
def delete_computer(self, project_name: str) -> Dict[str, Any]:
|
|
79
|
+
# Get the actual project ID from the name
|
|
80
|
+
project = self.get_status(project_name)
|
|
81
|
+
project_id = project.get("id")
|
|
82
|
+
if not project_id:
|
|
83
|
+
raise ValueError(f"Could not find ID for project {project_name}")
|
|
64
84
|
return self._request("POST", f"projects/{project_id}/delete")
|
|
65
85
|
|
|
66
86
|
# Computer control methods
|
|
@@ -3,10 +3,10 @@ orgo/computer.py,sha256=iX4KUzsCljT-F5m-ZlrUAs43wy8zlJIEQfvN-ghiKMM,9284
|
|
|
3
3
|
orgo/project.py,sha256=0rcii4AKLWP4GSbUzfnP4G7TMgmzjm6bj2n-22NIjmk,1779
|
|
4
4
|
orgo/prompt.py,sha256=ynblwXPTDp_aF1MbGBsY0PIEr9naklDaKFcfSE_EZ6E,19781
|
|
5
5
|
orgo/api/__init__.py,sha256=9Tzb_OPJ5DH7Cg7OrHzpZZUT4ip05alpa9RLDYmnId8,113
|
|
6
|
-
orgo/api/client.py,sha256=
|
|
6
|
+
orgo/api/client.py,sha256=mCm1m_8k3DCCYSM0JvY29BI6HHlH0PjVXNnENHhvMvU,5799
|
|
7
7
|
orgo/utils/__init__.py,sha256=W4G_nwGBf_7jy0w_mfcrkllurYHSRU4B5cMTVYH_uCc,123
|
|
8
8
|
orgo/utils/auth.py,sha256=tPLBJY-6gdBQWLUjUbwIwxHphC3KoRT_XgP3Iykw3Mw,509
|
|
9
|
-
orgo-0.0.
|
|
10
|
-
orgo-0.0.
|
|
11
|
-
orgo-0.0.
|
|
12
|
-
orgo-0.0.
|
|
9
|
+
orgo-0.0.19.dist-info/METADATA,sha256=Bs6WzId6JoTU0e93BMkvfceVKo8bN9GJzMNTig7TAy4,822
|
|
10
|
+
orgo-0.0.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
orgo-0.0.19.dist-info/top_level.txt,sha256=q0rYtFji8GbYuhFW8A5Ab9e0j27761IKPhnL0E9xow4,5
|
|
12
|
+
orgo-0.0.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|