Skip to content

Commit 308a860

Browse files
committed
python SDK release v0.5.0
1 parent 51a2ed2 commit 308a860

File tree

272 files changed

+13129
-8898
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+13129
-8898
lines changed

PKG-INFO

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
Metadata-Version: 2.1
22
Name: tuneinsight
3-
Version: 0.4.0
4-
Summary: Diapason is the official Python SDK for the Tune Insight Agent API
3+
Version: 0.5.0
4+
Summary: Diapason is the official Python SDK for the Tune Insight API
55
License: Apache-2.0
66
Author: Tune Insight SA
7-
Requires-Python: >=3.7.1,<3.11
7+
Requires-Python: >=3.7.1
88
Classifier: License :: OSI Approved :: Apache Software License
99
Classifier: Programming Language :: Python :: 3
1010
Classifier: Programming Language :: Python :: 3.8
1111
Classifier: Programming Language :: Python :: 3.9
1212
Classifier: Programming Language :: Python :: 3.10
13+
Classifier: Programming Language :: Python :: 3.11
1314
Requires-Dist: PyYAML (>=6.0,<7.0)
1415
Requires-Dist: attrs (>=21.3.0)
16+
Requires-Dist: certifi (>=2023.7.22,<2024.0.0)
1517
Requires-Dist: docker (>=6.0.1,<7.0.0)
1618
Requires-Dist: httpx (>=0.15.4,<0.24.0)
1719
Requires-Dist: matplotlib (>=3.5.0,<4.0.0)
@@ -22,7 +24,9 @@ Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
2224
Requires-Dist: python-dotenv (>=0.21.0,<0.22.0)
2325
Requires-Dist: python-keycloak (>=0.27.0,<0.28.0)
2426
Requires-Dist: pyvcf3 (>=1.0.3,<2.0.0)
25-
Requires-Dist: wheel (>=0.37.1,<0.38.0)
27+
Requires-Dist: selenium (>=4.9.1,<5.0.0)
28+
Requires-Dist: typing-extensions (>=4.6.3,<5.0.0)
29+
Requires-Dist: wheel (>=0.38.1,<0.39.0)
2630
Description-Content-Type: text/markdown
2731

2832
# Tune Insight Python SDK
@@ -34,7 +38,7 @@ Diapason is the Tune Insight Python SDK
3438
### Installing
3539

3640
```bash
37-
pip install tuneinsight-0.4.0.tar.gz
41+
pip install tuneinsight-0.1.1.tar.gz
3842
```
3943

4044
## Usage

pyproject.toml

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
[tool.poetry]
22
name = "tuneinsight"
3-
version = "0.4.0"
4-
description = "Diapason is the official Python SDK for the Tune Insight Agent API"
3+
version = "0.5.0"
4+
description = "Diapason is the official Python SDK for the Tune Insight API"
55
authors = ["Tune Insight SA"]
66
license = "Apache-2.0"
7-
include = ["src/tuneinsight/api/**/*.py"]
7+
include = [
8+
"src/tuneinsight/api/**/*.py",
9+
"src/tuneinsight/cryptolib/*.so",
10+
"src/tuneinsight/cryptolib/*.dll"
11+
]
812
readme = "src/tuneinsight/README.md"
913

1014
[tool.poetry.dependencies]
11-
python = ">= 3.7.1, < 3.11"
15+
python = ">= 3.7.1"
1216
python-keycloak = "^0.27.0"
1317
pandas = "^1.3.5"
1418
PyYAML = "^6.0"
1519
#cloudpickle = "^2.0.0" // TODO: to add in the future to run python on backend
16-
wheel = "^0.37.1"
20+
wheel = "^0.38.1"
1721
pylint = "^2.13.2"
1822
docker = "^6.0.1"
1923
notebook = "^6.4.11"
2024
python-dotenv = "^0.21.0"
2125
pyvcf3 = "^1.0.3"
2226
python-dateutil = "^2.8.0"
2327
matplotlib = "^3.5.0"
28+
selenium = "^4.9.1"
29+
typing-extensions = "^4.6.3"
2430

2531
# Required by ge_co_rest_api
2632
httpx = ">=0.15.4,<0.24.0"
2733
attrs = ">=21.3.0"
28-
selenium = "^4.9.1"
34+
certifi = "^2023.7.22"
2935

3036

3137
[build-system]

setup.py

-71
This file was deleted.

src/tuneinsight/api/README.md

-89
This file was deleted.

src/tuneinsight/api/sdk/api/api_admin/post_storage.py

+18-15
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ... import errors
77
from ...client import Client
8-
from ...models.post_storage_response_403 import PostStorageResponse403
8+
from ...models.error import Error
99
from ...models.storage_definition import StorageDefinition
1010
from ...types import Response
1111

@@ -32,30 +32,33 @@ def _get_kwargs(
3232
}
3333

3434

35-
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[PostStorageResponse403, str]]:
35+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[Error, str]]:
3636
if response.status_code == HTTPStatus.OK:
3737
response_200 = cast(str, response.json())
3838
return response_200
3939
if response.status_code == HTTPStatus.BAD_REQUEST:
40-
response_400 = cast(str, response.json())
40+
response_400 = Error.from_dict(response.json())
41+
4142
return response_400
4243
if response.status_code == HTTPStatus.FORBIDDEN:
43-
response_403 = PostStorageResponse403.from_dict(response.json())
44+
response_403 = Error.from_dict(response.json())
4445

4546
return response_403
4647
if response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY:
47-
response_422 = cast(str, response.json())
48+
response_422 = Error.from_dict(response.json())
49+
4850
return response_422
4951
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
50-
response_500 = cast(str, response.json())
52+
response_500 = Error.from_dict(response.json())
53+
5154
return response_500
5255
if client.raise_on_unexpected_status:
5356
raise errors.UnexpectedStatus(f"Unexpected status code: {response.status_code}")
5457
else:
5558
return None
5659

5760

58-
def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[PostStorageResponse403, str]]:
61+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[Error, str]]:
5962
return Response(
6063
status_code=HTTPStatus(response.status_code),
6164
content=response.content,
@@ -68,7 +71,7 @@ def sync_detailed(
6871
*,
6972
client: Client,
7073
json_body: StorageDefinition,
71-
) -> Response[Union[PostStorageResponse403, str]]:
74+
) -> Response[Union[Error, str]]:
7275
"""Request a Storage operation
7376
7477
Args:
@@ -79,7 +82,7 @@ def sync_detailed(
7982
httpx.TimeoutException: If the request takes longer than Client.timeout.
8083
8184
Returns:
82-
Response[Union[PostStorageResponse403, str]]
85+
Response[Union[Error, str]]
8386
"""
8487

8588
kwargs = _get_kwargs(
@@ -99,7 +102,7 @@ def sync(
99102
*,
100103
client: Client,
101104
json_body: StorageDefinition,
102-
) -> Optional[Union[PostStorageResponse403, str]]:
105+
) -> Optional[Union[Error, str]]:
103106
"""Request a Storage operation
104107
105108
Args:
@@ -110,7 +113,7 @@ def sync(
110113
httpx.TimeoutException: If the request takes longer than Client.timeout.
111114
112115
Returns:
113-
Response[Union[PostStorageResponse403, str]]
116+
Response[Union[Error, str]]
114117
"""
115118

116119
return sync_detailed(
@@ -123,7 +126,7 @@ async def asyncio_detailed(
123126
*,
124127
client: Client,
125128
json_body: StorageDefinition,
126-
) -> Response[Union[PostStorageResponse403, str]]:
129+
) -> Response[Union[Error, str]]:
127130
"""Request a Storage operation
128131
129132
Args:
@@ -134,7 +137,7 @@ async def asyncio_detailed(
134137
httpx.TimeoutException: If the request takes longer than Client.timeout.
135138
136139
Returns:
137-
Response[Union[PostStorageResponse403, str]]
140+
Response[Union[Error, str]]
138141
"""
139142

140143
kwargs = _get_kwargs(
@@ -152,7 +155,7 @@ async def asyncio(
152155
*,
153156
client: Client,
154157
json_body: StorageDefinition,
155-
) -> Optional[Union[PostStorageResponse403, str]]:
158+
) -> Optional[Union[Error, str]]:
156159
"""Request a Storage operation
157160
158161
Args:
@@ -163,7 +166,7 @@ async def asyncio(
163166
httpx.TimeoutException: If the request takes longer than Client.timeout.
164167
165168
Returns:
166-
Response[Union[PostStorageResponse403, str]]
169+
Response[Union[Error, str]]
167170
"""
168171

169172
return (

0 commit comments

Comments
 (0)