codemie-sdk-python 0.1.32__py3-none-any.whl → 0.1.34__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.
Potentially problematic release.
This version of codemie-sdk-python might be problematic. Click here for more details.
- codemie_sdk/models/datasource.py +3 -0
- codemie_sdk/models/integration.py +3 -0
- codemie_sdk/models/workflow.py +3 -0
- codemie_sdk/services/datasource.py +7 -6
- codemie_sdk/services/workflow.py +4 -3
- {codemie_sdk_python-0.1.32.dist-info → codemie_sdk_python-0.1.34.dist-info}/METADATA +1 -1
- {codemie_sdk_python-0.1.32.dist-info → codemie_sdk_python-0.1.34.dist-info}/RECORD +8 -8
- {codemie_sdk_python-0.1.32.dist-info → codemie_sdk_python-0.1.34.dist-info}/WHEEL +0 -0
codemie_sdk/models/datasource.py
CHANGED
codemie_sdk/models/workflow.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""DataSource service implementation."""
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
-
from typing import Literal, List, Union, Tuple
|
|
4
|
+
from typing import Literal, List, Union, Tuple, Optional, Dict, Any
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
|
|
7
7
|
from ..models.common import PaginationParams
|
|
@@ -138,6 +138,7 @@ class DatasourceService:
|
|
|
138
138
|
projects: List[str] = None,
|
|
139
139
|
owner: str = None,
|
|
140
140
|
status: DataSourceStatus = None,
|
|
141
|
+
filters: Optional[Dict[str, Any]] = None,
|
|
141
142
|
) -> List[DataSource]:
|
|
142
143
|
"""
|
|
143
144
|
List datasources with pagination and sorting support.
|
|
@@ -151,6 +152,7 @@ class DatasourceService:
|
|
|
151
152
|
projects: Optional projects to filter by.
|
|
152
153
|
owner: Optional owner to filter by in format: FirstName LastName.
|
|
153
154
|
status: Optional data source status to filter by.
|
|
155
|
+
filters: Optional filters to apply. Should be a dictionary with filter criteria.
|
|
154
156
|
|
|
155
157
|
Returns:
|
|
156
158
|
DataSourceListResponse object containing list of datasources and pagination information.
|
|
@@ -159,15 +161,14 @@ class DatasourceService:
|
|
|
159
161
|
params["sort_key"] = sort_key
|
|
160
162
|
params["sort_order"] = sort_order
|
|
161
163
|
|
|
162
|
-
filters = {}
|
|
163
164
|
if datasource_types:
|
|
164
|
-
|
|
165
|
+
params["index_type"] = datasource_types
|
|
165
166
|
if projects:
|
|
166
|
-
|
|
167
|
+
params["project"] = projects
|
|
167
168
|
if status:
|
|
168
|
-
|
|
169
|
+
params["status"] = status.value
|
|
169
170
|
if owner:
|
|
170
|
-
|
|
171
|
+
params["created_by"] = owner
|
|
171
172
|
if filters:
|
|
172
173
|
params["filters"] = json.dumps(filters)
|
|
173
174
|
return self._api.get("/v1/index", List[DataSource], params=params)
|
codemie_sdk/services/workflow.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Workflow service implementation."""
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
-
from typing import List, Optional
|
|
4
|
+
from typing import List, Optional, Any, Dict
|
|
5
5
|
|
|
6
6
|
from .workflow_execution import WorkflowExecutionService
|
|
7
7
|
from ..models.common import PaginationParams
|
|
@@ -81,6 +81,7 @@ class WorkflowService:
|
|
|
81
81
|
page: int = 0,
|
|
82
82
|
per_page: int = 10,
|
|
83
83
|
projects: Optional[List[str]] = None,
|
|
84
|
+
filters: Optional[Dict[str, Any]] = None,
|
|
84
85
|
) -> List[Workflow]:
|
|
85
86
|
"""List workflows with filtering and pagination support.
|
|
86
87
|
|
|
@@ -88,6 +89,7 @@ class WorkflowService:
|
|
|
88
89
|
page: Page number (0-based). Must be >= 0. Defaults to 0.
|
|
89
90
|
per_page: Number of items per page. Must be > 0. Defaults to 10.
|
|
90
91
|
projects: Optional projects to filter by.
|
|
92
|
+
filters: Optional filters to apply. Should be a dictionary with filter criteria.
|
|
91
93
|
|
|
92
94
|
Returns:
|
|
93
95
|
List of Workflow objects containing workflow information and pagination metadata.
|
|
@@ -96,9 +98,8 @@ class WorkflowService:
|
|
|
96
98
|
|
|
97
99
|
params = PaginationParams(page=page, per_page=per_page).to_dict()
|
|
98
100
|
|
|
99
|
-
filters = {}
|
|
100
101
|
if projects:
|
|
101
|
-
|
|
102
|
+
params["project"] = projects
|
|
102
103
|
if filters:
|
|
103
104
|
params["filters"] = json.dumps(filters)
|
|
104
105
|
|
|
@@ -6,24 +6,24 @@ codemie_sdk/client/client.py,sha256=dVcWqd-ruWd8GOZ3_33C3LnHgUyyxIoCKxKYPYbBPq8,
|
|
|
6
6
|
codemie_sdk/exceptions.py,sha256=XoVPyognx-JmyVxLHkZPAcX1CMi1OoT1diBFJLU54so,1183
|
|
7
7
|
codemie_sdk/models/assistant.py,sha256=RCVuYcKI_DzGyObJ3e1l4rrcVev-1Hq7crW9XY5pvus,7479
|
|
8
8
|
codemie_sdk/models/common.py,sha256=V4sJCzwFTF8BPlrd2OKI44Em5HmPmn2Nm8fQNsnBZ_Q,1128
|
|
9
|
-
codemie_sdk/models/datasource.py,sha256=
|
|
10
|
-
codemie_sdk/models/integration.py,sha256=
|
|
9
|
+
codemie_sdk/models/datasource.py,sha256=u6X1xXZ3ZR9CWH0B0bSw3IjC7KyEwtRKHIc6ZuhJwsg,10813
|
|
10
|
+
codemie_sdk/models/integration.py,sha256=yT_hwETh4kghhH__VyGGXLrDWAYLgCSB97vdZH-BjEs,1831
|
|
11
11
|
codemie_sdk/models/llm.py,sha256=ppb9-1dx1UFhRuJpSR3ij7H6Pfhe9nO4C4BEOIbToy4,1192
|
|
12
12
|
codemie_sdk/models/task.py,sha256=J4ZFRY3s8qBGrqB5NLQF0rMbInLh4s7OEZ0ZfmnW0Ho,1476
|
|
13
13
|
codemie_sdk/models/user.py,sha256=Q0rjimZh-IbeaPfq6b6fk6ZaCtwLqWHEIlU863suCS4,1777
|
|
14
|
-
codemie_sdk/models/workflow.py,sha256=
|
|
14
|
+
codemie_sdk/models/workflow.py,sha256=h3ZM-2bBucRd9CzZUYDTU0rGR1ihEN7cxkHgQmJfJVc,2394
|
|
15
15
|
codemie_sdk/models/workflow_state.py,sha256=CMYFQZ7sy4QxmnWmc83TFfqP7TG_3rW5MdH5fxsS9kY,1251
|
|
16
16
|
codemie_sdk/services/assistant.py,sha256=D3aYFPd97wZIpKylAmxF6qtMwSeKyM54OqeKoDOw1U4,5554
|
|
17
|
-
codemie_sdk/services/datasource.py,sha256=
|
|
17
|
+
codemie_sdk/services/datasource.py,sha256=gIP9D-sq4733x9f0mWL87bMI1pWYxIsv5eYXkAs0O6Q,7150
|
|
18
18
|
codemie_sdk/services/integration.py,sha256=vJnSkXk2C2l0ahX2SUsuA7fKhY2hTuAByynx5Lgh7Ls,4864
|
|
19
19
|
codemie_sdk/services/llm.py,sha256=0-e4_7RvLHs2giCyoQ5U4KDTh6p5VXgPKNxnDP9ZDFU,1100
|
|
20
20
|
codemie_sdk/services/task.py,sha256=3e9t8_LMkR4xfeMBwMCo7ZF87PxPS-ZbzDg85ilda2M,1031
|
|
21
21
|
codemie_sdk/services/user.py,sha256=7B-Qw451qKPD5Io6qLda-kbFDaPRQ3TamJamiGwCQu4,1013
|
|
22
|
-
codemie_sdk/services/workflow.py,sha256=
|
|
22
|
+
codemie_sdk/services/workflow.py,sha256=0d5grAsBIH2NZY66UbVhlDqEFYxEYSBByj3GNgcz_DQ,4965
|
|
23
23
|
codemie_sdk/services/workflow_execution.py,sha256=aGoT3rdTmh5-doAsrmBBjLEuOfvL5aqeo3g9th1_aAw,3647
|
|
24
24
|
codemie_sdk/services/workflow_execution_state.py,sha256=tXoaa8yT09xgYEUNiHhVULe76TwGwVgZupMIUyyLxdo,2070
|
|
25
25
|
codemie_sdk/utils/__init__.py,sha256=BXAJJfAzO89-kMYvWWo9wSNhSbGgF3vB1In9sePFhMM,109
|
|
26
26
|
codemie_sdk/utils/http.py,sha256=YzE53y1r7PBUKcEQt-gGYduRY06I8xzqVRzlj9f_voA,10084
|
|
27
|
-
codemie_sdk_python-0.1.
|
|
28
|
-
codemie_sdk_python-0.1.
|
|
29
|
-
codemie_sdk_python-0.1.
|
|
27
|
+
codemie_sdk_python-0.1.34.dist-info/METADATA,sha256=bz2o3YLo9FyHqVhj3LBJGKoLB4QpxJ5m4rlQQmdmUSU,21614
|
|
28
|
+
codemie_sdk_python-0.1.34.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
29
|
+
codemie_sdk_python-0.1.34.dist-info/RECORD,,
|
|
File without changes
|