Skip to content

Commit 0ca2b81

Browse files
authored
Merge pull request #12 from tuneinsight/release-v1.0.1
v1.0.1 release
2 parents 71d99ae + ad7ce44 commit 0ca2b81

Some content is hidden

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

54 files changed

+952
-158
lines changed

PKG-INFO

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: tuneinsight
3-
Version: 1.0.0
3+
Version: 1.0.1
44
Summary: Official Python SDK for the Tune Insight API. The current version is compatible with the same version of the API.
55
License: Apache-2.0
66
Author: Tune Insight SA

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pip freeze | grep tuneinsight
7474
The result should look like this:
7575

7676
```
77-
tuneinsight==1.0.0
77+
tuneinsight==1.0.1
7878
```
7979

8080
If you see a line that looks like this,
@@ -85,7 +85,7 @@ tuneinsight @ file:///path/to/file/tuneinsight-0.13.1-py3-none-any.whl#sha256=..
8585

8686
the SDK was installed directly from a `.whl` file, suggesting you are using an older version. You might need to install a more recent version, using `pip`:
8787

88-
`pip install tuneinsight==1.0.0`
88+
`pip install tuneinsight==1.0.1`
8989

9090
#### Error: Could not load the cryptolib: contact your administrator.
9191

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tuneinsight"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "Official Python SDK for the Tune Insight API. The current version is compatible with the same version of the API."
55
authors = ["Tune Insight SA"]
66
license = "Apache-2.0"

src/tuneinsight/README.md

-142
This file was deleted.

src/tuneinsight/api/api-checksum

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8d0b2f324979cbdf852607639e6b0637a544509eff940dfd5a411841f23db4ea
1+
0d5fa5e5c06de59a4c29dc6aa5cf12011640e12055eafcc55c58ac91f5428782

src/tuneinsight/api/sdk/api/api_datasource/post_data_source_command.py

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Uni
6363
response_404 = Error.from_dict(response.json())
6464

6565
return response_404
66+
if response.status_code == HTTPStatus.REQUEST_TIMEOUT:
67+
response_408 = Error.from_dict(response.json())
68+
69+
return response_408
6670
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
6771
response_500 = Error.from_dict(response.json())
6872

src/tuneinsight/api/sdk/api/api_ontology/build_catalog.py

+33-1
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,30 @@
55

66
from ... import errors
77
from ...client import Client
8+
from ...models.build_catalog_action import BuildCatalogAction
89
from ...models.error import Error
9-
from ...types import Response
10+
from ...types import UNSET, Response, Unset
1011

1112

1213
def _get_kwargs(
1314
*,
1415
client: Client,
16+
action: Union[Unset, None, BuildCatalogAction] = UNSET,
1517
) -> Dict[str, Any]:
1618
url = "{}/build-catalog".format(client.base_url)
1719

1820
headers: Dict[str, str] = client.get_headers()
1921
cookies: Dict[str, Any] = client.get_cookies()
2022

23+
params: Dict[str, Any] = {}
24+
json_action: Union[Unset, None, str] = UNSET
25+
if not isinstance(action, Unset):
26+
json_action = action.value if action else None
27+
28+
params["action"] = json_action
29+
30+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
31+
2132
# Set the proxies if the client has proxies set.
2233
proxies = None
2334
if hasattr(client, "proxies") and client.proxies is not None:
@@ -36,6 +47,7 @@ def _get_kwargs(
3647
"cookies": cookies,
3748
"timeout": client.get_timeout(),
3849
"proxies": proxies,
50+
"params": params,
3951
}
4052

4153

@@ -73,9 +85,13 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni
7385
def sync_detailed(
7486
*,
7587
client: Client,
88+
action: Union[Unset, None, BuildCatalogAction] = UNSET,
7689
) -> Response[Union[Any, Error]]:
7790
"""Build a catalog from the SPHN ontologies
7891
92+
Args:
93+
action (Union[Unset, None, BuildCatalogAction]):
94+
7995
Raises:
8096
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
8197
httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -86,6 +102,7 @@ def sync_detailed(
86102

87103
kwargs = _get_kwargs(
88104
client=client,
105+
action=action,
89106
)
90107

91108
response = httpx.request(
@@ -99,9 +116,13 @@ def sync_detailed(
99116
def sync(
100117
*,
101118
client: Client,
119+
action: Union[Unset, None, BuildCatalogAction] = UNSET,
102120
) -> Optional[Union[Any, Error]]:
103121
"""Build a catalog from the SPHN ontologies
104122
123+
Args:
124+
action (Union[Unset, None, BuildCatalogAction]):
125+
105126
Raises:
106127
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
107128
httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -112,15 +133,20 @@ def sync(
112133

113134
return sync_detailed(
114135
client=client,
136+
action=action,
115137
).parsed
116138

117139

118140
async def asyncio_detailed(
119141
*,
120142
client: Client,
143+
action: Union[Unset, None, BuildCatalogAction] = UNSET,
121144
) -> Response[Union[Any, Error]]:
122145
"""Build a catalog from the SPHN ontologies
123146
147+
Args:
148+
action (Union[Unset, None, BuildCatalogAction]):
149+
124150
Raises:
125151
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
126152
httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -131,6 +157,7 @@ async def asyncio_detailed(
131157

132158
kwargs = _get_kwargs(
133159
client=client,
160+
action=action,
134161
)
135162

136163
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
@@ -142,9 +169,13 @@ async def asyncio_detailed(
142169
async def asyncio(
143170
*,
144171
client: Client,
172+
action: Union[Unset, None, BuildCatalogAction] = UNSET,
145173
) -> Optional[Union[Any, Error]]:
146174
"""Build a catalog from the SPHN ontologies
147175
176+
Args:
177+
action (Union[Unset, None, BuildCatalogAction]):
178+
148179
Raises:
149180
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
150181
httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -156,5 +187,6 @@ async def asyncio(
156187
return (
157188
await asyncio_detailed(
158189
client=client,
190+
action=action,
159191
)
160192
).parsed

0 commit comments

Comments
 (0)