fiddler-client 3.0.0.dev6__py3-none-any.whl → 3.0.0.dev7__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.
- fiddler/VERSION +1 -1
- fiddler/constants/common.py +2 -4
- fiddler/entities/file.py +13 -9
- {fiddler_client-3.0.0.dev6.dist-info → fiddler_client-3.0.0.dev7.dist-info}/METADATA +1 -1
- {fiddler_client-3.0.0.dev6.dist-info → fiddler_client-3.0.0.dev7.dist-info}/RECORD +8 -8
- {fiddler_client-3.0.0.dev6.dist-info → fiddler_client-3.0.0.dev7.dist-info}/LICENSE.txt +0 -0
- {fiddler_client-3.0.0.dev6.dist-info → fiddler_client-3.0.0.dev7.dist-info}/WHEEL +0 -0
- {fiddler_client-3.0.0.dev6.dist-info → fiddler_client-3.0.0.dev7.dist-info}/top_level.txt +0 -0
fiddler/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.0.
|
|
1
|
+
3.0.0.dev7
|
fiddler/constants/common.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
JSON_CONTENT_TYPE = 'application/json'
|
|
2
|
-
FIDDLER_CLIENT_VERSION_HEADER = 'X-Fiddler-Client-Version'
|
|
3
1
|
CLIENT_NAME = 'python-sdk'
|
|
4
2
|
LOGGER_NAME = 'fiddler'
|
|
5
3
|
LOG_FORMAT = '%(asctime)s [%(name)s:%(lineno)d] %(levelname)s: %(message)s'
|
|
@@ -7,8 +5,8 @@ TIMESTAMP_FORMAT = '%Y-%m-%d %H:%M:%S.%f'
|
|
|
7
5
|
|
|
8
6
|
# Headers
|
|
9
7
|
CONTENT_TYPE_HEADER_KEY = 'Content-Type'
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
JSON_CONTENT_TYPE = 'application/json'
|
|
9
|
+
FIDDLER_CLIENT_VERSION_HEADER = 'X-Fiddler-Client-Version'
|
|
12
10
|
|
|
13
11
|
# Multi-part upload
|
|
14
12
|
MULTI_PART_CHUNK_SIZE = 100 * 1024 * 1024 # 100MB in bytes
|
fiddler/entities/file.py
CHANGED
|
@@ -9,7 +9,11 @@ from uuid import UUID
|
|
|
9
9
|
|
|
10
10
|
from requests import Response
|
|
11
11
|
|
|
12
|
-
from fiddler.constants.common import
|
|
12
|
+
from fiddler.constants.common import (
|
|
13
|
+
CONTENT_TYPE_HEADER_KEY,
|
|
14
|
+
MULTI_PART_CHUNK_SIZE,
|
|
15
|
+
MULTI_PART_FORM_CONTENT_TYPE,
|
|
16
|
+
)
|
|
13
17
|
from fiddler.decorators import handle_api_error
|
|
14
18
|
from fiddler.entities.base import BaseEntity
|
|
15
19
|
from fiddler.entities.user import CreatedByMixin, UpdatedByMixin
|
|
@@ -75,13 +79,13 @@ class File(BaseEntity, CreatedByMixin, UpdatedByMixin):
|
|
|
75
79
|
def single_upload(self) -> File:
|
|
76
80
|
"""Single part file upload"""
|
|
77
81
|
with open(self.path, 'rb') as f:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
response = self._client().post(
|
|
83
|
+
url='/v3/files/upload',
|
|
84
|
+
files={
|
|
85
|
+
'file': (self.name, io.BytesIO(f.read())),
|
|
86
|
+
},
|
|
87
|
+
headers={CONTENT_TYPE_HEADER_KEY: None},
|
|
88
|
+
)
|
|
85
89
|
|
|
86
90
|
self._refresh_from_response(response)
|
|
87
91
|
return self
|
|
@@ -137,7 +141,7 @@ class File(BaseEntity, CreatedByMixin, UpdatedByMixin):
|
|
|
137
141
|
'file_id': (None, str(self.id)),
|
|
138
142
|
'part_number': (None, part_number),
|
|
139
143
|
},
|
|
140
|
-
headers={
|
|
144
|
+
headers={CONTENT_TYPE_HEADER_KEY: None},
|
|
141
145
|
)
|
|
142
146
|
|
|
143
147
|
parts.append(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
fiddler/VERSION,sha256=
|
|
1
|
+
fiddler/VERSION,sha256=tDv34XUe-bbgWozYc7zUNF9z9Opb6i7AzS7JnBYNzRA,11
|
|
2
2
|
fiddler/__init__.py,sha256=VCfPx51-NUioKq0OZSKmQTq0Qd20G088BcZt4CIzmG0,3378
|
|
3
3
|
fiddler/configs.py,sha256=s8nKw_2gCEKYk8dnmRxd92J8rCl08V4vPcH0xATT4Lw,258
|
|
4
4
|
fiddler/connection.py,sha256=pYaOyyJytsljofaMyRPV-Vs_i4wHKO48BxIJMqEBxHg,5760
|
|
@@ -8,7 +8,7 @@ fiddler/version.py,sha256=8fyg3UhFpqghMpxbtYIwNcB1lhCG6yTkPBbDS7IrwxY,140
|
|
|
8
8
|
fiddler/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
fiddler/constants/alert_rule.py,sha256=cmFq-VKAlQbRKEkTtMmVNdD5R52uMI2zJai6TESFwfs,512
|
|
10
10
|
fiddler/constants/baseline.py,sha256=NhmiGf73gy2IHKKpbm64HCE4eJfbxkAPy3uk_Z-6qSo,321
|
|
11
|
-
fiddler/constants/common.py,sha256=
|
|
11
|
+
fiddler/constants/common.py,sha256=GCW9rzqPkOIcC80j98sKPqxBr8vPLbJ2TrelKaV30yw,400
|
|
12
12
|
fiddler/constants/dataset.py,sha256=ZxPmzycSlrKpUYShpfTDqfmz8LAebzyBtIV_dBy-pRI,126
|
|
13
13
|
fiddler/constants/events.py,sha256=3SgjNo4IS-_Nod8wbj98di4B4GctF9R414MZxfQ4MkU,114
|
|
14
14
|
fiddler/constants/job.py,sha256=tMT0vr3x3IiCTQcifP2s1-VWC5gskflKexfU_VfDIzA,233
|
|
@@ -23,7 +23,7 @@ fiddler/entities/baseline.py,sha256=1y2bFIapzlDSBd4EUfNy6e-Q8fm3t0AGAZTdiz97hXQ,
|
|
|
23
23
|
fiddler/entities/custom_metric.py,sha256=Oxcnx-o1D4WowDIa5nclGDbw5eYwpemlIyhDhjyq0Ow,6802
|
|
24
24
|
fiddler/entities/dataset.py,sha256=dmOWae2IxwoIbIRX62fCtjr6uNrht3mSuFw_QTnvZwI,4712
|
|
25
25
|
fiddler/entities/events.py,sha256=usFxs8Cq0ds1MIrOjZT5jVt3XDXMdGYakOoNFnTFQ8Y,4370
|
|
26
|
-
fiddler/entities/file.py,sha256=
|
|
26
|
+
fiddler/entities/file.py,sha256=PFkMsmprcyMnlaknHAiSnN9MtEPJn3uA8ESZIwLxmI4,4941
|
|
27
27
|
fiddler/entities/job.py,sha256=Feiqo6ns4bRcp2uaV-kuGYAKs90-aYXvzqqi1yLivYE,5220
|
|
28
28
|
fiddler/entities/model.py,sha256=TiI-n6TfFP8gdML_kbrowBotFIsRqb2UmiClkyzXn3c,16499
|
|
29
29
|
fiddler/entities/model_artifact.py,sha256=ktyFkg-nUPtdpSUGNXHfLOwSMiBaaRkdU0s9DQ67lLs,5514
|
|
@@ -100,8 +100,8 @@ fiddler/utils/logger.py,sha256=FdJ3LkS9dbRjWsw5oJmNNsd7q0XRVEIvx5-TWys7L0k,669
|
|
|
100
100
|
fiddler/utils/model_generator.py,sha256=TwQMQDpy-0gcq6HyL68s37N-sk_nGPq33mmppK6i7hI,2203
|
|
101
101
|
fiddler/utils/validations.py,sha256=i8NtgrpCsitq6BPa5lygpKDh07oaOXu7PAlCIcMvqzY,408
|
|
102
102
|
fiddler/utils/version.py,sha256=iC8Ry7UFl9EJW_xU1WbzO_l4yK6V7eQ6U5exB3xT864,531
|
|
103
|
-
fiddler_client-3.0.0.
|
|
104
|
-
fiddler_client-3.0.0.
|
|
105
|
-
fiddler_client-3.0.0.
|
|
106
|
-
fiddler_client-3.0.0.
|
|
107
|
-
fiddler_client-3.0.0.
|
|
103
|
+
fiddler_client-3.0.0.dev7.dist-info/LICENSE.txt,sha256=w8-LUAb_VLBWSsCNmih0pAqLIicJfGu8OJXpDjkIg_o,559
|
|
104
|
+
fiddler_client-3.0.0.dev7.dist-info/METADATA,sha256=efHCdYnYZCYmJFPUei9yTaidChT83jLBd2s55BuhmJw,20679
|
|
105
|
+
fiddler_client-3.0.0.dev7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
106
|
+
fiddler_client-3.0.0.dev7.dist-info/top_level.txt,sha256=ndC6LqvKmrTTs8czRlBOYdYgSqZbHuMf0zHt_HWpzzk,8
|
|
107
|
+
fiddler_client-3.0.0.dev7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|