orgo 0.0.29__py3-none-any.whl → 0.0.31__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
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import requests
|
|
4
4
|
from typing import Dict, Any, Optional, List
|
|
5
5
|
import logging
|
|
6
|
-
import sys
|
|
7
6
|
|
|
8
7
|
from orgo.utils.auth import get_api_key
|
|
9
8
|
|
|
@@ -54,7 +53,11 @@ class ApiClient:
|
|
|
54
53
|
|
|
55
54
|
def get_project_by_name(self, name: str) -> Dict[str, Any]:
|
|
56
55
|
"""Get project details by name"""
|
|
57
|
-
|
|
56
|
+
projects = self.list_projects()
|
|
57
|
+
for project in projects:
|
|
58
|
+
if project.get("name") == name:
|
|
59
|
+
return project
|
|
60
|
+
raise Exception(f"Project '{name}' not found") from None
|
|
58
61
|
|
|
59
62
|
def get_project(self, project_id: str) -> Dict[str, Any]:
|
|
60
63
|
"""Get project details by ID"""
|
|
@@ -3,10 +3,10 @@ orgo/computer.py,sha256=Twe3cWlZGppAqeyQUGCghaAcjcJ41NFbEpJWgxLmqsg,14400
|
|
|
3
3
|
orgo/project.py,sha256=uVDFa8iyn5OaHzTzjGQhxnF_nVzwkqkqUShiV3M0AWU,3150
|
|
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=apny7V3IYJTyDwn5utukzyECLWT65oo-1EmFRwHL--E,7544
|
|
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.31.dist-info/METADATA,sha256=1oG_9j_vfM0l06pmjDtb12rCxknOehGrlewNVPsJ2OA,822
|
|
10
|
+
orgo-0.0.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
orgo-0.0.31.dist-info/top_level.txt,sha256=q0rYtFji8GbYuhFW8A5Ab9e0j27761IKPhnL0E9xow4,5
|
|
12
|
+
orgo-0.0.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|