codemie-sdk-python 0.1.88__py3-none-any.whl → 0.1.90__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.

@@ -59,9 +59,9 @@ class Workflow(BaseModel):
59
59
  mode: WorkflowMode = WorkflowMode.SEQUENTIAL
60
60
  shared: bool = False
61
61
  icon_url: Optional[str] = None
62
- created_date: datetime = Field(None, alias="date")
63
- update_date: datetime = Field(None)
64
- created_by: User
62
+ created_date: Optional[datetime] = Field(None, alias="date")
63
+ update_date: Optional[datetime] = Field(None)
64
+ created_by: Optional[User] = None
65
65
 
66
66
 
67
67
  class ExecutionStatus(str, Enum):
@@ -7,6 +7,7 @@ from pydantic import BaseModel
7
7
  from copy import deepcopy
8
8
 
9
9
  import requests
10
+ import mimetypes
10
11
 
11
12
  from ..models.assistant import (
12
13
  Assistant,
@@ -205,7 +206,15 @@ class AssistantService:
205
206
 
206
207
  with open(file_path, "rb") as file:
207
208
  files = [
208
- ("file", (file_path.name, file, self._api.detect_mime_type(file_path)))
209
+ (
210
+ "file",
211
+ (
212
+ file_path.name,
213
+ file,
214
+ mimetypes.guess_type(file_path.name)
215
+ or "application/octet-stream",
216
+ ),
217
+ ),
209
218
  ]
210
219
  response = self._api.post_multipart("/v1/files/", dict, files=files)
211
220
 
codemie_sdk/utils/http.py CHANGED
@@ -1,6 +1,5 @@
1
1
  """HTTP utilities for CodeMie SDK."""
2
2
 
3
- from pathlib import Path
4
3
  from typing import TypeVar, Type, Optional, Any, Union, Dict, List, get_origin, get_args
5
4
  from pydantic import BaseModel
6
5
  import requests
@@ -276,27 +275,3 @@ class ApiRequestHandler:
276
275
  response.raise_for_status()
277
276
 
278
277
  return self._parse_response(response, response_model, wrap_response)
279
-
280
- @staticmethod
281
- def detect_mime_type(file_path: Path) -> str:
282
- """Detect MIME type based on file extension."""
283
- extension = file_path.suffix.lower()
284
- mime_types = {
285
- ".txt": "text/plain",
286
- ".vtt": "text/vtt",
287
- ".csv": "text/csv",
288
- ".json": "application/json",
289
- ".yaml": "application/x-yaml",
290
- ".yml": "application/x-yaml",
291
- ".xml": "text/xml",
292
- ".pdf": "application/pdf",
293
- ".jpg": "image/jpeg",
294
- ".jpeg": "image/jpeg",
295
- ".gif": "image/gif",
296
- ".png": "image/png",
297
- ".ods": "application/vnd.oasis.opendocument.spreadsheet",
298
- ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
299
- ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
300
- ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
301
- }
302
- return mime_types.get(extension, "application/octet-stream")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.88
3
+ Version: 0.1.90
4
4
  Summary: CodeMie SDK for Python
5
5
  Author: Vadym Vlasenko
6
6
  Author-email: vadym_vlasenko@epam.com
@@ -853,6 +853,21 @@ Run e2e/regression tests
853
853
  pytest -n auto -m "e2e or regression" --reruns 1
854
854
  ```
855
855
 
856
+ Run UI tests
857
+
858
+ First you have to install playwright browsers:
859
+
860
+ ```shell
861
+ playwright install
862
+ ```
863
+ and then
864
+
865
+ ```shell
866
+ pytest -n 4 -m ui --reruns 1
867
+ ```
868
+
869
+ All Playwright documentation can be found by the following link: https://playwright.dev/python/docs/intro
870
+
856
871
  Run tests for e2e tests for specific integration/tool.
857
872
  Available marks:
858
873
  - jira_kb
@@ -871,3 +886,7 @@ In case you want to send test results in **ReportPortal** you should specify RP_
871
886
  ```shell
872
887
  pytest -n auto -m "e2e or regression" --reruns 1 --reportportal
873
888
  ```
889
+
890
+ ReportPortal link is available by the following URL: https://report-portal.core.kuberocketci.io/ui/#epm-cdme/launches/all
891
+
892
+ If you do not have access to the project ask Anton Yeromin (anton_yeromin@epam.com) to add you.
@@ -12,9 +12,9 @@ codemie_sdk/models/integration.py,sha256=uXUf4-_l5Qmn63R2bOoyEv6Lc-x0LSY4Hz8NR5e
12
12
  codemie_sdk/models/llm.py,sha256=ppb9-1dx1UFhRuJpSR3ij7H6Pfhe9nO4C4BEOIbToy4,1192
13
13
  codemie_sdk/models/task.py,sha256=J4ZFRY3s8qBGrqB5NLQF0rMbInLh4s7OEZ0ZfmnW0Ho,1476
14
14
  codemie_sdk/models/user.py,sha256=Q0rjimZh-IbeaPfq6b6fk6ZaCtwLqWHEIlU863suCS4,1777
15
- codemie_sdk/models/workflow.py,sha256=h3ZM-2bBucRd9CzZUYDTU0rGR1ihEN7cxkHgQmJfJVc,2394
15
+ codemie_sdk/models/workflow.py,sha256=pr8ap_70pzv3Ugvdo4RivNOFyoQVr1E5fze2O87L4gM,2431
16
16
  codemie_sdk/models/workflow_state.py,sha256=CMYFQZ7sy4QxmnWmc83TFfqP7TG_3rW5MdH5fxsS9kY,1251
17
- codemie_sdk/services/assistant.py,sha256=4El_J_fPsj5OR4bN7EnmsNY9n02TLxt4uSw8s4b7J_s,7660
17
+ codemie_sdk/services/assistant.py,sha256=hd5_Bt6Cuf8_hOcnYIi6-S1z7PuCE3zXwf0U9UAMPlY,7885
18
18
  codemie_sdk/services/datasource.py,sha256=gIP9D-sq4733x9f0mWL87bMI1pWYxIsv5eYXkAs0O6Q,7150
19
19
  codemie_sdk/services/integration.py,sha256=SdwFwR3hCPyJYilzzlkpKPLNbO89nfqmIXXoT7bDEBI,5410
20
20
  codemie_sdk/services/llm.py,sha256=0-e4_7RvLHs2giCyoQ5U4KDTh6p5VXgPKNxnDP9ZDFU,1100
@@ -24,7 +24,7 @@ codemie_sdk/services/workflow.py,sha256=0d5grAsBIH2NZY66UbVhlDqEFYxEYSBByj3GNgcz
24
24
  codemie_sdk/services/workflow_execution.py,sha256=aGoT3rdTmh5-doAsrmBBjLEuOfvL5aqeo3g9th1_aAw,3647
25
25
  codemie_sdk/services/workflow_execution_state.py,sha256=tXoaa8yT09xgYEUNiHhVULe76TwGwVgZupMIUyyLxdo,2070
26
26
  codemie_sdk/utils/__init__.py,sha256=BXAJJfAzO89-kMYvWWo9wSNhSbGgF3vB1In9sePFhMM,109
27
- codemie_sdk/utils/http.py,sha256=8XgEuagVcCKRAwzbcRRKSLS-c_CCcLDlRQrXGEplQCA,10314
28
- codemie_sdk_python-0.1.88.dist-info/METADATA,sha256=rqLY1QKWYemcHEC48TpfkwdUdqS7PzzY-3oRPwkfRnM,23146
29
- codemie_sdk_python-0.1.88.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- codemie_sdk_python-0.1.88.dist-info/RECORD,,
27
+ codemie_sdk/utils/http.py,sha256=FWU56W_-vBGbHfX1EC1zsoRjDoNCyNK2HCdNb4IkQVc,9233
28
+ codemie_sdk_python-0.1.90.dist-info/METADATA,sha256=nQPmNJMB9RV_PLoh90xUwUFExoVwd1IqGGWID4K-oqY,23620
29
+ codemie_sdk_python-0.1.90.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ codemie_sdk_python-0.1.90.dist-info/RECORD,,