dotstat_io 1.0.4__py3-none-any.whl → 1.0.5__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 dotstat_io might be problematic. Click here for more details.
dotstat_io/client.py
CHANGED
|
@@ -156,7 +156,8 @@ class Client():
|
|
|
156
156
|
file_path: Path,
|
|
157
157
|
space: str,
|
|
158
158
|
validationType: int,
|
|
159
|
-
use_filepath: bool = False
|
|
159
|
+
use_filepath: bool = False,
|
|
160
|
+
optimize: bool = True):
|
|
160
161
|
try:
|
|
161
162
|
returned_result = ""
|
|
162
163
|
|
|
@@ -166,7 +167,8 @@ class Client():
|
|
|
166
167
|
|
|
167
168
|
payload = {
|
|
168
169
|
'dataspace': space,
|
|
169
|
-
'validationType': validationType
|
|
170
|
+
'validationType': validationType,
|
|
171
|
+
'optimize': optimize
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
headers = {
|
|
@@ -178,12 +180,14 @@ class Client():
|
|
|
178
180
|
files = {
|
|
179
181
|
'dataspace': (None, payload['dataspace']),
|
|
180
182
|
'validationType': (None, payload['validationType']),
|
|
183
|
+
'optimize': (None, payload['optimize']),
|
|
181
184
|
'filepath': (None, str(file_path))
|
|
182
185
|
}
|
|
183
186
|
else:
|
|
184
187
|
files = {
|
|
185
188
|
'dataspace': (None, payload['dataspace']),
|
|
186
189
|
'validationType': (None, payload['validationType']),
|
|
190
|
+
'optimize': (None, payload['optimize']),
|
|
187
191
|
'file': (os.path.realpath(file_path), open(os.path.realpath(file_path), 'rb'), 'text/csv', '')
|
|
188
192
|
}
|
|
189
193
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
dotstat_io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
dotstat_io/authentication.py,sha256=6mxRXuDUgU7wBrUNMzoXU_PFCF1bLGAiGgVrwOePmZw,14057
|
|
3
|
+
dotstat_io/client.py,sha256=HorcPsKdwVd4gpKorqfGr9BnXWqrSpgdyERcAioaxcI,23813
|
|
4
|
+
dotstat_io-1.0.5.dist-info/METADATA,sha256=MQ3-UWTLg8RAh9YiXNzDdTfS96CUtwvj0Vw67RxGazo,8001
|
|
5
|
+
dotstat_io-1.0.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
6
|
+
dotstat_io-1.0.5.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
dotstat_io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
dotstat_io/authentication.py,sha256=6mxRXuDUgU7wBrUNMzoXU_PFCF1bLGAiGgVrwOePmZw,14057
|
|
3
|
-
dotstat_io/client.py,sha256=SHpPnVCINGRLxsmz7-_jpLEMvXYDkm9_GAR8tHbpwf4,23606
|
|
4
|
-
dotstat_io-1.0.4.dist-info/METADATA,sha256=NTmpcVLH6vBvQeZKRO1oOAXGYUhLkOdBoUtCjmRt--M,8001
|
|
5
|
-
dotstat_io-1.0.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
6
|
-
dotstat_io-1.0.4.dist-info/RECORD,,
|
|
File without changes
|