qmenta-core 4.1.dev704__py3-none-any.whl → 4.1.dev705__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 qmenta-core might be problematic. Click here for more details.

qmenta/core/platform.py CHANGED
@@ -1,13 +1,12 @@
1
1
  import requests
2
- from urllib.parse import urljoin
3
- from typing import Dict, Any
4
-
5
2
  from qmenta.core.auth import Auth
6
3
  from qmenta.core.errors import (
7
4
  ActionFailedError,
8
5
  ConnectionError,
9
6
  InvalidResponseError,
10
7
  )
8
+ from typing import Dict, Any, List
9
+ from urllib.parse import urljoin
11
10
 
12
11
  """
13
12
  Handles all the communication with the QMENTA platform.
@@ -22,16 +21,19 @@ class ChooseDataError(ActionFailedError):
22
21
  ----------
23
22
  warning : str
24
23
  Warning message returned by the platform
25
- data_to_choose : str
24
+ data_to_choose : dict
26
25
  Specification of the data to choose returned by the platform
27
26
  analysis_id : int
28
27
  The ID of the analysis for which data needs to be chosen,
29
28
  returned by the platform.
30
29
  """
31
- def __init__(self, warning: str, data_to_choose: str,
32
- analysis_id: int) -> None:
30
+
31
+ def __init__(
32
+ self, warning: str, data_to_choose: Dict[str, List[str]]
33
+ , analysis_id: int
34
+ ) -> None:
33
35
  self.warning: str = warning
34
- self.data_to_choose: str = data_to_choose
36
+ self.data_to_choose: dict = data_to_choose
35
37
  self.analysis_id: int = analysis_id
36
38
 
37
39
 
@@ -133,9 +135,11 @@ def parse_response(response: requests.Response) -> Any:
133
135
  return result
134
136
 
135
137
 
136
- def post(auth: Auth, endpoint: str, data: Dict[str, Any] = {},
137
- headers: Dict[str, Any] = {}, stream: bool = False,
138
- timeout: float = 30.0) -> requests.Response:
138
+ def post(
139
+ auth: Auth, endpoint: str, data: Dict[str, Any] = {},
140
+ headers: Dict[str, Any] = {}, stream: bool = False,
141
+ timeout: float = 30.0
142
+ ) -> requests.Response:
139
143
  """
140
144
  Post the given data and headers to the specified platform's endpoint.
141
145
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qmenta-core
3
- Version: 4.1.dev704
3
+ Version: 4.1.dev705
4
4
  Summary: QMENTA core library to communicate with the QMENTA platform.
5
5
  License: Proprietary
6
6
  Author: QMENTA
@@ -3,13 +3,13 @@ qmenta/core/.gitignore,sha256=T_6cEPGYAfQ6-gdGwpLCLe1SpRnTl4vwi4qfVM1QsYI,8
3
3
  qmenta/core/__init__.py,sha256=J_Se74WI6plv-7tRufJDsXpgxG_WRX4pwLvK-Hhq4Ls,304
4
4
  qmenta/core/auth.py,sha256=xiamkcIaQQPD1OppLScv0dxF0PhAjqQOA3DqzUv79l4,10026
5
5
  qmenta/core/errors.py,sha256=eu72sENP9YUVN1w9Urji1nH0V41pdg4UiSvxjun6ggE,1145
6
- qmenta/core/platform.py,sha256=-5SYOdZCgj4O02-iTdbV1R_IOj2wLZc6RAnSDmj_GUc,5477
6
+ qmenta/core/platform.py,sha256=Gd-_8SmTNNcPqIM_wNG_EQE-3hIg49xKeeG0TxxslT0,5504
7
7
  qmenta/core/upload/__init__.py,sha256=-VHwhSQkdUmw697v4o59iDiqdU6kh-8_3BklGp4W864,182
8
8
  qmenta/core/upload/multi.py,sha256=RmhJRXRonZse7nEJeTJu55nzxvAP4ARRLcC3LGR_OJA,4933
9
9
  qmenta/core/upload/prepare.py,sha256=JcFSl8RRCsNnzcNvn7-d7ARUfZvvEJhuCuW5VbMjmpI,8139
10
10
  qmenta/core/upload/single.py,sha256=FE4ZucI3qIEfzqhZKQPOKremzez7CjMRS28t-tsep4E,19356
11
11
  qmenta/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- qmenta_core-4.1.dev704.dist-info/METADATA,sha256=JF9gDOEjnXbYjVpeup1d_f7ksSDUolQX5_sRvNk3ac0,1155
13
- qmenta_core-4.1.dev704.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
14
- qmenta_core-4.1.dev704.dist-info/entry_points.txt,sha256=8c0Nh22PxTp8Auui-k8qIinhdaotgc-wulDC3-PC92c,53
15
- qmenta_core-4.1.dev704.dist-info/RECORD,,
12
+ qmenta_core-4.1.dev705.dist-info/METADATA,sha256=ZbSg1aB7byEpavw3BintUv5dFwueHvpxQuxy7Ty5fGY,1155
13
+ qmenta_core-4.1.dev705.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
14
+ qmenta_core-4.1.dev705.dist-info/entry_points.txt,sha256=8c0Nh22PxTp8Auui-k8qIinhdaotgc-wulDC3-PC92c,53
15
+ qmenta_core-4.1.dev705.dist-info/RECORD,,