codemie-sdk-python 0.1.89__tar.gz → 0.1.90__tar.gz
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_python-0.1.89/README.md → codemie_sdk_python-0.1.90/PKG-INFO +33 -1
- codemie_sdk_python-0.1.89/PKG-INFO → codemie_sdk_python-0.1.90/README.md +19 -13
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/pyproject.toml +1 -1
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/assistant.py +10 -1
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/utils/http.py +0 -25
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/__init__.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/auth/__init__.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/auth/credentials.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/client/__init__.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/client/client.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/exceptions.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/__init__.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/assistant.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/common.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/datasource.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/integration.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/llm.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/task.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/user.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/workflow.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/workflow_state.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/datasource.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/integration.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/llm.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/task.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/user.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/workflow.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/workflow_execution.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/workflow_execution_state.py +0 -0
- {codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/utils/__init__.py +0 -0
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: codemie-sdk-python
|
|
3
|
+
Version: 0.1.90
|
|
4
|
+
Summary: CodeMie SDK for Python
|
|
5
|
+
Author: Vadym Vlasenko
|
|
6
|
+
Author-email: vadym_vlasenko@epam.com
|
|
7
|
+
Requires-Python: >=3.12,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Requires-Dist: pydantic (>=2.11.1,<3.0.0)
|
|
11
|
+
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
1
14
|
# CodeMie Python SDK
|
|
2
15
|
|
|
3
16
|
Python SDK for CodeMie services. This SDK provides a comprehensive interface to interact with CodeMie services, including LLM (Large Language Models), assistants, workflows, and tools.
|
|
@@ -840,6 +853,21 @@ Run e2e/regression tests
|
|
|
840
853
|
pytest -n auto -m "e2e or regression" --reruns 1
|
|
841
854
|
```
|
|
842
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
|
+
|
|
843
871
|
Run tests for e2e tests for specific integration/tool.
|
|
844
872
|
Available marks:
|
|
845
873
|
- jira_kb
|
|
@@ -857,4 +885,8 @@ In case you want to send test results in **ReportPortal** you should specify RP_
|
|
|
857
885
|
|
|
858
886
|
```shell
|
|
859
887
|
pytest -n auto -m "e2e or regression" --reruns 1 --reportportal
|
|
860
|
-
```
|
|
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.
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: codemie-sdk-python
|
|
3
|
-
Version: 0.1.89
|
|
4
|
-
Summary: CodeMie SDK for Python
|
|
5
|
-
Author: Vadym Vlasenko
|
|
6
|
-
Author-email: vadym_vlasenko@epam.com
|
|
7
|
-
Requires-Python: >=3.12,<4.0
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
-
Requires-Dist: pydantic (>=2.11.1,<3.0.0)
|
|
11
|
-
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
|
|
14
1
|
# CodeMie Python SDK
|
|
15
2
|
|
|
16
3
|
Python SDK for CodeMie services. This SDK provides a comprehensive interface to interact with CodeMie services, including LLM (Large Language Models), assistants, workflows, and tools.
|
|
@@ -853,6 +840,21 @@ Run e2e/regression tests
|
|
|
853
840
|
pytest -n auto -m "e2e or regression" --reruns 1
|
|
854
841
|
```
|
|
855
842
|
|
|
843
|
+
Run UI tests
|
|
844
|
+
|
|
845
|
+
First you have to install playwright browsers:
|
|
846
|
+
|
|
847
|
+
```shell
|
|
848
|
+
playwright install
|
|
849
|
+
```
|
|
850
|
+
and then
|
|
851
|
+
|
|
852
|
+
```shell
|
|
853
|
+
pytest -n 4 -m ui --reruns 1
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
All Playwright documentation can be found by the following link: https://playwright.dev/python/docs/intro
|
|
857
|
+
|
|
856
858
|
Run tests for e2e tests for specific integration/tool.
|
|
857
859
|
Available marks:
|
|
858
860
|
- jira_kb
|
|
@@ -871,3 +873,7 @@ In case you want to send test results in **ReportPortal** you should specify RP_
|
|
|
871
873
|
```shell
|
|
872
874
|
pytest -n auto -m "e2e or regression" --reruns 1 --reportportal
|
|
873
875
|
```
|
|
876
|
+
|
|
877
|
+
ReportPortal link is available by the following URL: https://report-portal.core.kuberocketci.io/ui/#epm-cdme/launches/all
|
|
878
|
+
|
|
879
|
+
If you do not have access to the project ask Anton Yeromin (anton_yeromin@epam.com) to add you.
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/assistant.py
RENAMED
|
@@ -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
|
-
(
|
|
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
|
|
|
@@ -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")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/datasource.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/models/workflow_state.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/datasource.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.89 → codemie_sdk_python-0.1.90}/src/codemie_sdk/services/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|