Skip to content

Commit cb7b5f8

Browse files
committed
Update to v0.12.1
1 parent 003bc1a commit cb7b5f8

Some content is hidden

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

47 files changed

+900
-427
lines changed

PKG-INFO

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: tuneinsight
3-
Version: 0.11.1
3+
Version: 0.12.1
44
Summary: Diapason is the 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
@@ -29,16 +29,18 @@ Description-Content-Type: text/markdown
2929

3030
# Tune Insight Python SDK
3131

32-
Diapason is the official Python SDK for the Tune Insight API
32+
Diapason is the official Python SDK for the Tune Insight API.
3333

34-
# Documentation
34+
## Documentation
3535

36-
Please refer to the [official documentation](https://dev.tuneinsight.com/docs/Usage/python-sdk/).
36+
Please refer to the [official documentation](https://dev.tuneinsight.com/docs/Usage/python-sdk/) for a detailed explanation on how to use Diapason.
3737

3838
### Installing
3939

40+
Download the latest version of the SDK at https://dev.tuneinsight.com/packages/tuneinsight-diapason-0.11.1.tar.gz, then install it using `pip`.
41+
4042
```bash
41-
pip install tuneinsight-diapason-0.6.0.tar.gz
43+
pip install tuneinsight-diapason-11.1.0.tar.gz
4244
```
4345

4446
## License

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tuneinsight"
3-
version = "0.11.1"
3+
version = "0.12.1"
44
description = "Diapason is the 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

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Tune Insight Python SDK
22

3-
Diapason is the official Python SDK for the Tune Insight API
3+
Diapason is the official Python SDK for the Tune Insight API.
44

5-
# Documentation
5+
## Documentation
66

7-
Please refer to the [official documentation](https://dev.tuneinsight.com/docs/Usage/python-sdk/).
7+
Please refer to the [official documentation](https://dev.tuneinsight.com/docs/Usage/python-sdk/) for a detailed explanation on how to use Diapason.
88

99
### Installing
1010

11+
Download the latest version of the SDK at https://dev.tuneinsight.com/packages/tuneinsight-diapason-0.12.1.tar.gz, then install it using `pip`.
12+
1113
```bash
12-
pip install tuneinsight-diapason-0.6.0.tar.gz
14+
pip install tuneinsight-diapason-12.1.0.tar.gz
1315
```
1416

1517
## License

src/tuneinsight/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Tune Insight Diapason SDK."""
2-
31
# Import the key class.
42
from .client import Diapason
53

src/tuneinsight/api/api-checksum

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
050861bc9b56ad9cc7a0abac9c4bbe7b3dea8d5dd6a6034eeda22bd09e108f62
1+
8693e3d243485ddc12030a0ad561d7f9150479f8adeb1e0ef72bcb2c73578bbc

src/tuneinsight/api/sdk/models/__init__.py

+10
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@
7474
from .data_source_table import DataSourceTable
7575
from .data_source_type import DataSourceType
7676
from .data_source_types_info import DataSourceTypesInfo
77+
from .data_upload_params import DataUploadParams
78+
from .data_upload_response import DataUploadResponse
7779
from .database_type import DatabaseType
7880
from .dataset_schema import DatasetSchema
7981
from .dataset_schema_columns import DatasetSchemaColumns
8082
from .dataset_statistics import DatasetStatistics
8183
from .dataset_validation import DatasetValidation
8284
from .deviation_squares import DeviationSquares
85+
from .displayed_capability import DisplayedCapability
8386
from .documentation_response_200 import DocumentationResponse200
8487
from .dp_policy import DPPolicy
8588
from .drop import Drop
@@ -256,6 +259,8 @@
256259
from .user_definition_attributes import UserDefinitionAttributes
257260
from .user_definition_client_roles import UserDefinitionClientRoles
258261
from .user_definition_disableable_credential_types_item import UserDefinitionDisableableCredentialTypesItem
262+
from .user_group import UserGroup
263+
from .user_info import UserInfo
259264
from .user_list_query import UserListQuery
260265
from .v_binned_aggregation import VBinnedAggregation
261266
from .whitelisted_query import WhitelistedQuery
@@ -342,7 +347,10 @@
342347
"DataSourceTable",
343348
"DataSourceType",
344349
"DataSourceTypesInfo",
350+
"DataUploadParams",
351+
"DataUploadResponse",
345352
"DeviationSquares",
353+
"DisplayedCapability",
346354
"DocumentationResponse200",
347355
"DPPolicy",
348356
"Drop",
@@ -519,6 +527,8 @@
519527
"UserDefinitionAttributes",
520528
"UserDefinitionClientRoles",
521529
"UserDefinitionDisableableCredentialTypesItem",
530+
"UserGroup",
531+
"UserInfo",
522532
"UserListQuery",
523533
"VBinnedAggregation",
524534
"WhitelistedQuery",

src/tuneinsight/api/sdk/models/capability.py

+8
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ class Capability(str, Enum):
66
VIEWPROJECTSTATUSES = "ViewProjectStatuses"
77
CREATEPROJECTS = "CreateProjects"
88
EDITPROJECTS = "EditProjects"
9+
EDITPROJECTWORKFLOW = "EditProjectWorkflow"
10+
EDITPROJECTMETADATA = "EditProjectMetadata"
11+
EDITPROJECTNETWORK = "EditProjectNetwork"
12+
EDITPROJECTACCESS = "EditProjectAccess"
13+
EDITPROJECTPOLICY = "EditProjectPolicy"
14+
EDITPROJECTCONFIGURATION = "EditProjectConfiguration"
915
REQUESTPROJECTAUTHORIZATION = "RequestProjectAuthorization"
1016
AUTHORIZEPROJECTS = "AuthorizeProjects"
1117
ACCESSANYPROJECT = "AccessAnyProject"
1218
DELETEPROJECTS = "DeleteProjects"
1319
DELETEANYPROJECT = "DeleteAnyProject"
1420
SETANYDATASOURCE = "SetAnyDataSource"
21+
SETDATASOURCES = "SetDataSources"
1522
RUNPROJECTS = "RunProjects"
1623
VIEWRESULTS = "ViewResults"
1724
VIEWANYRESULT = "ViewAnyResult"
@@ -52,6 +59,7 @@ class Capability(str, Enum):
5259
MANAGESTORAGE = "ManageStorage"
5360
VIEWCONFIG = "ViewConfig"
5461
MANAGEUSERS = "ManageUsers"
62+
VIEWUSERINFO = "ViewUserInfo"
5563
VIEWAUDITLOGS = "ViewAuditLogs"
5664
VIEWNETWORK = "ViewNetwork"
5765
SYNCNETWORKS = "SyncNetworks"

src/tuneinsight/api/sdk/models/data_object_type.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class DataObjectType(str, Enum):
2929
PIR_DATASET = "pir-dataset"
3030
ENCRYPTED_PIR_SEARCH = "encrypted-pir-search"
3131
ENCRYPTED_PIR_RESULT = "encrypted-pir-result"
32+
ENCRYPTED_DATA_OBJECT = "encrypted-data-object"
3233

3334
def __str__(self) -> str:
3435
return str(self.value)

src/tuneinsight/api/sdk/models/encrypted_mean.py

+4-9
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ class EncryptedMean:
7474
allowing the aggregation to be performed on distinct groups based on the specified keys.
7575
min_participants (Union[Unset, int]): defines the minimum number of participating organizations for each
7676
aggregated group.
77+
If there are not enough participants for a single group, then the collective mean computation will be skipped
78+
for this group.
79+
Note that this parameter is ignored when the computation is run locally as there will always be only one
80+
participant locally.
7781
outlier_threshold (Union[Unset, float]): the threshold T to use to filter out outlier values.
7882
A value x will be considered an outlier if abs(x - mean) > T * STD.
79-
participant (Union[Unset, str]): optional column that is used to identify the name of the participant.
80-
If empty, the name of the instance will be used instead.
8183
variables (Union[Unset, List[str]]): list of variables to compute the mean on.
8284
"""
8385

@@ -104,7 +106,6 @@ class EncryptedMean:
104106
grouping_keys: Union[Unset, List[str]] = UNSET
105107
min_participants: Union[Unset, int] = UNSET
106108
outlier_threshold: Union[Unset, float] = UNSET
107-
participant: Union[Unset, str] = UNSET
108109
variables: Union[Unset, List[str]] = UNSET
109110
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
110111

@@ -151,7 +152,6 @@ def to_dict(self) -> Dict[str, Any]:
151152

152153
min_participants = self.min_participants
153154
outlier_threshold = self.outlier_threshold
154-
participant = self.participant
155155
variables: Union[Unset, List[str]] = UNSET
156156
if not isinstance(self.variables, Unset):
157157
variables = self.variables
@@ -207,8 +207,6 @@ def to_dict(self) -> Dict[str, Any]:
207207
field_dict["minParticipants"] = min_participants
208208
if outlier_threshold is not UNSET:
209209
field_dict["outlierThreshold"] = outlier_threshold
210-
if participant is not UNSET:
211-
field_dict["participant"] = participant
212210
if variables is not UNSET:
213211
field_dict["variables"] = variables
214212

@@ -293,8 +291,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
293291

294292
outlier_threshold = d.pop("outlierThreshold", UNSET)
295293

296-
participant = d.pop("participant", UNSET)
297-
298294
variables = cast(List[str], d.pop("variables", UNSET))
299295

300296
encrypted_mean = cls(
@@ -321,7 +317,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
321317
grouping_keys=grouping_keys,
322318
min_participants=min_participants,
323319
outlier_threshold=outlier_threshold,
324-
participant=participant,
325320
variables=variables,
326321
)
327322

src/tuneinsight/api/sdk/models/get_network_metadata_response_200.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class GetNetworkMetadataResponse200:
2222
default_topology (Union[Unset, str]): Indicates the default topology of the network used when creating a
2323
project. Values can be "star" or "tree".
2424
dpo_authorization_enabled (Union[Unset, bool]): Indicates if collective projects require authorization.
25+
e_2_ee_enforced (Union[Unset, bool]): Indicates if the instance is configured to only allow end-to-end encrypted
26+
computations.
27+
When this mode is activated, the e2e project setting cannot be toggled off anymore and only computations
28+
supporting e2e mode can be launched.
2529
network_type (Union[Unset, GetNetworkMetadataResponse200NetworkType]): Indicates the type of network. Values can
2630
be "default" or "sse".
2731
networks (Union[Unset, List['Network']]):
@@ -32,6 +36,7 @@ class GetNetworkMetadataResponse200:
3236
compound_queries_enabled: Union[Unset, bool] = UNSET
3337
default_topology: Union[Unset, str] = UNSET
3438
dpo_authorization_enabled: Union[Unset, bool] = UNSET
39+
e_2_ee_enforced: Union[Unset, bool] = UNSET
3540
network_type: Union[Unset, GetNetworkMetadataResponse200NetworkType] = UNSET
3641
networks: Union[Unset, List["Network"]] = UNSET
3742
nodes: Union[Unset, List["Node"]] = UNSET
@@ -42,6 +47,7 @@ def to_dict(self) -> Dict[str, Any]:
4247
compound_queries_enabled = self.compound_queries_enabled
4348
default_topology = self.default_topology
4449
dpo_authorization_enabled = self.dpo_authorization_enabled
50+
e_2_ee_enforced = self.e_2_ee_enforced
4551
network_type: Union[Unset, str] = UNSET
4652
if not isinstance(self.network_type, Unset):
4753
network_type = self.network_type.value
@@ -75,6 +81,8 @@ def to_dict(self) -> Dict[str, Any]:
7581
field_dict["defaultTopology"] = default_topology
7682
if dpo_authorization_enabled is not UNSET:
7783
field_dict["dpoAuthorizationEnabled"] = dpo_authorization_enabled
84+
if e_2_ee_enforced is not UNSET:
85+
field_dict["e2eeEnforced"] = e_2_ee_enforced
7886
if network_type is not UNSET:
7987
field_dict["networkType"] = network_type
8088
if networks is not UNSET:
@@ -98,6 +106,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
98106

99107
dpo_authorization_enabled = d.pop("dpoAuthorizationEnabled", UNSET)
100108

109+
e_2_ee_enforced = d.pop("e2eeEnforced", UNSET)
110+
101111
_network_type = d.pop("networkType", UNSET)
102112
network_type: Union[Unset, GetNetworkMetadataResponse200NetworkType]
103113
if isinstance(_network_type, Unset):
@@ -125,6 +135,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
125135
compound_queries_enabled=compound_queries_enabled,
126136
default_topology=default_topology,
127137
dpo_authorization_enabled=dpo_authorization_enabled,
138+
e_2_ee_enforced=e_2_ee_enforced,
128139
network_type=network_type,
129140
networks=networks,
130141
nodes=nodes,

src/tuneinsight/api/sdk/models/post_data_source_data_multipart_data.py

+13
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ class PostDataSourceDataMultipartData:
1515
data_source_request_data (Union[Unset, File]): Data source data file. Supported format: CSV.
1616
data_source_request_data_raw (Union[Unset, str]): Data source data provided as raw string csv
1717
table_name (Union[Unset, str]):
18+
delimiter (Union[Unset, str]): optional delimiter setting for csv loading
1819
"""
1920

2021
data_source_request_data: Union[Unset, File] = UNSET
2122
data_source_request_data_raw: Union[Unset, str] = UNSET
2223
table_name: Union[Unset, str] = UNSET
24+
delimiter: Union[Unset, str] = UNSET
2325
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
2426

2527
def to_dict(self) -> Dict[str, Any]:
@@ -29,6 +31,7 @@ def to_dict(self) -> Dict[str, Any]:
2931

3032
data_source_request_data_raw = self.data_source_request_data_raw
3133
table_name = self.table_name
34+
delimiter = self.delimiter
3235

3336
field_dict: Dict[str, Any] = {}
3437
field_dict.update(self.additional_properties)
@@ -39,6 +42,8 @@ def to_dict(self) -> Dict[str, Any]:
3942
field_dict["dataSourceRequestDataRaw"] = data_source_request_data_raw
4043
if table_name is not UNSET:
4144
field_dict["tableName"] = table_name
45+
if delimiter is not UNSET:
46+
field_dict["delimiter"] = delimiter
4247

4348
return field_dict
4449

@@ -57,6 +62,9 @@ def to_multipart(self) -> Dict[str, Any]:
5762
if isinstance(self.table_name, Unset)
5863
else (None, str(self.table_name).encode(), "text/plain")
5964
)
65+
delimiter = (
66+
self.delimiter if isinstance(self.delimiter, Unset) else (None, str(self.delimiter).encode(), "text/plain")
67+
)
6068

6169
field_dict: Dict[str, Any] = {}
6270
field_dict.update(
@@ -69,6 +77,8 @@ def to_multipart(self) -> Dict[str, Any]:
6977
field_dict["dataSourceRequestDataRaw"] = data_source_request_data_raw
7078
if table_name is not UNSET:
7179
field_dict["tableName"] = table_name
80+
if delimiter is not UNSET:
81+
field_dict["delimiter"] = delimiter
7282

7383
return field_dict
7484

@@ -86,10 +96,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
8696

8797
table_name = d.pop("tableName", UNSET)
8898

99+
delimiter = d.pop("delimiter", UNSET)
100+
89101
post_data_source_data_multipart_data = cls(
90102
data_source_request_data=data_source_request_data,
91103
data_source_request_data_raw=data_source_request_data_raw,
92104
table_name=table_name,
105+
delimiter=delimiter,
93106
)
94107

95108
post_data_source_data_multipart_data.additional_properties = d

0 commit comments

Comments
 (0)