dotstat_io 1.0.4__tar.gz → 1.0.5__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dotstat_io
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Utility to download or upload data from/to .Stat Suite using ADFS authentication to connect to it
5
5
  License: MIT
6
6
  Author: Gyorgy Gyomai
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dotstat_io"
3
- version = "1.0.4"
3
+ version = "1.0.5"
4
4
  description = "Utility to download or upload data from/to .Stat Suite using ADFS authentication to connect to it"
5
5
  license = "MIT"
6
6
  authors = ["Gyorgy Gyomai <gyorgy.gyomai@oecd.org>", "Abdel Aliaoui <abdel.aliaoui@oecd.org>"]
File without changes