wizata-dsapi 1.3.45__py3-none-any.whl → 1.3.46__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.
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.45"
1
+ __version__ = "1.3.46"
@@ -1142,10 +1142,16 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
1142
1142
  for file in model_info.files:
1143
1143
  file: wizata_dsapi.ModelFile
1144
1144
  if file.name != "trained_model":
1145
- headers["Content-Type"] = "application/octet-stream"
1145
+ single_file = {
1146
+ "file": (
1147
+ file.path,
1148
+ file.content,
1149
+ "application/octet-stream",
1150
+ )
1151
+ }
1146
1152
  response = requests.post(self.__url() + f"models/{model_info.identifier(include_alias=True)}/files/{file.path}",
1147
1153
  headers=headers,
1148
- data=file.content,
1154
+ files=single_file,
1149
1155
  timeout=60)
1150
1156
  if response.status_code != 200 and response.status_code != 201:
1151
1157
  raise self.__raise_error(response)
@@ -2021,10 +2027,17 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
2021
2027
  path = file.path
2022
2028
 
2023
2029
  headers = self.__header()
2024
- headers["Content-Type"] = "application/octet-stream"
2030
+ headers.pop("Content-Type", None)
2031
+ single_file = {
2032
+ "file": (
2033
+ path,
2034
+ content,
2035
+ "application/octet-stream",
2036
+ )
2037
+ }
2025
2038
  response = requests.post(self.__url() + f"models/{identifier}/files/{path}",
2026
2039
  headers=headers,
2027
- data=content,
2040
+ files=single_file,
2028
2041
  timeout=60)
2029
2042
  if response.status_code != 200 and response.status_code != 201:
2030
2043
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.45
3
+ Version: 1.3.46
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -31,10 +31,10 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
32
  wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=hUx6hyyFDFLM68-JHSiseoCTe4NcscFhXa3nz63-ko8,23
34
+ wizata_dsapi/version.py,sha256=5O78hV8ZBFKQKxB-un5qpit3OFVDyjX6JFd97JFh6aY,23
35
35
  wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
36
36
  wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
37
- wizata_dsapi/wizata_dsapi_client.py,sha256=KycD4Rv2yoqCx7kugTUfw_4Z064TYTUvEfyKjzkQOjc,84395
37
+ wizata_dsapi/wizata_dsapi_client.py,sha256=PUFOt5b9OOBEjlgUgA4FtdtJyORzZ2eRv4VfWW4uH7E,84724
38
38
  wizata_dsapi/words.py,sha256=tV8CqzCqODZCV7PgBxBF5exBxeF_ya9t5DiUy-cg6Sg,1535
39
39
  wizata_dsapi/models/__init__.py,sha256=O5PHqw8lKILw4apO-MfDxPz73wK0vADD9y3xjuzX7Tw,104
40
40
  wizata_dsapi/models/common.py,sha256=1dTqE80-mFJnUwEdNlJdhJzfZ2N5Kp8Nb3LQ8uwPtLc,3808
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
42
42
  wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
43
43
  wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
44
44
  wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
45
- wizata_dsapi-1.3.45.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.3.45.dist-info/METADATA,sha256=tLsSmmkIz3CI9u796B-aB9ySLQmRQIXi9wFr-hxpNWo,5651
47
- wizata_dsapi-1.3.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- wizata_dsapi-1.3.45.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.3.45.dist-info/RECORD,,
45
+ wizata_dsapi-1.3.46.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.3.46.dist-info/METADATA,sha256=YPJMA0vfCa6ZvoOVi2n_hqMXfFhFX6zWoZFEAyq3NIg,5651
47
+ wizata_dsapi-1.3.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ wizata_dsapi-1.3.46.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.3.46.dist-info/RECORD,,