robosystems-client 0.2.17__py3-none-any.whl → 0.2.18__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 robosystems-client might be problematic. Click here for more details.
- robosystems_client/extensions/file_client.py +57 -5
- robosystems_client/extensions/materialization_client.py +28 -2
- robosystems_client/extensions/table_client.py +28 -2
- {robosystems_client-0.2.17.dist-info → robosystems_client-0.2.18.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.17.dist-info → robosystems_client-0.2.18.dist-info}/RECORD +7 -7
- {robosystems_client-0.2.17.dist-info → robosystems_client-0.2.18.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.17.dist-info → robosystems_client-0.2.18.dist-info}/licenses/LICENSE +0 -0
|
@@ -134,9 +134,22 @@ class FileClient:
|
|
|
134
134
|
table_name=table_name,
|
|
135
135
|
)
|
|
136
136
|
|
|
137
|
+
from ..client import AuthenticatedClient
|
|
138
|
+
|
|
139
|
+
if not self.token:
|
|
140
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
141
|
+
|
|
142
|
+
client = AuthenticatedClient(
|
|
143
|
+
base_url=self.base_url,
|
|
144
|
+
token=self.token,
|
|
145
|
+
prefix="",
|
|
146
|
+
auth_header_name="X-API-Key",
|
|
147
|
+
headers=self.headers,
|
|
148
|
+
)
|
|
149
|
+
|
|
137
150
|
kwargs = {
|
|
138
151
|
"graph_id": graph_id,
|
|
139
|
-
"client":
|
|
152
|
+
"client": client,
|
|
140
153
|
"body": upload_request,
|
|
141
154
|
}
|
|
142
155
|
|
|
@@ -195,7 +208,7 @@ class FileClient:
|
|
|
195
208
|
update_kwargs = {
|
|
196
209
|
"graph_id": graph_id,
|
|
197
210
|
"file_id": file_id,
|
|
198
|
-
"client":
|
|
211
|
+
"client": client,
|
|
199
212
|
"body": status_update,
|
|
200
213
|
}
|
|
201
214
|
|
|
@@ -261,9 +274,22 @@ class FileClient:
|
|
|
261
274
|
List of FileInfo objects
|
|
262
275
|
"""
|
|
263
276
|
try:
|
|
277
|
+
from ..client import AuthenticatedClient
|
|
278
|
+
|
|
279
|
+
if not self.token:
|
|
280
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
281
|
+
|
|
282
|
+
client = AuthenticatedClient(
|
|
283
|
+
base_url=self.base_url,
|
|
284
|
+
token=self.token,
|
|
285
|
+
prefix="",
|
|
286
|
+
auth_header_name="X-API-Key",
|
|
287
|
+
headers=self.headers,
|
|
288
|
+
)
|
|
289
|
+
|
|
264
290
|
kwargs = {
|
|
265
291
|
"graph_id": graph_id,
|
|
266
|
-
"client":
|
|
292
|
+
"client": client,
|
|
267
293
|
}
|
|
268
294
|
|
|
269
295
|
if table_name:
|
|
@@ -311,10 +337,23 @@ class FileClient:
|
|
|
311
337
|
FileInfo with multi-layer status tracking, or None if not found
|
|
312
338
|
"""
|
|
313
339
|
try:
|
|
340
|
+
from ..client import AuthenticatedClient
|
|
341
|
+
|
|
342
|
+
if not self.token:
|
|
343
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
344
|
+
|
|
345
|
+
client = AuthenticatedClient(
|
|
346
|
+
base_url=self.base_url,
|
|
347
|
+
token=self.token,
|
|
348
|
+
prefix="",
|
|
349
|
+
auth_header_name="X-API-Key",
|
|
350
|
+
headers=self.headers,
|
|
351
|
+
)
|
|
352
|
+
|
|
314
353
|
kwargs = {
|
|
315
354
|
"graph_id": graph_id,
|
|
316
355
|
"file_id": file_id,
|
|
317
|
-
"client":
|
|
356
|
+
"client": client,
|
|
318
357
|
}
|
|
319
358
|
|
|
320
359
|
response = get_file(**kwargs)
|
|
@@ -355,10 +394,23 @@ class FileClient:
|
|
|
355
394
|
True if deletion succeeded, False otherwise
|
|
356
395
|
"""
|
|
357
396
|
try:
|
|
397
|
+
from ..client import AuthenticatedClient
|
|
398
|
+
|
|
399
|
+
if not self.token:
|
|
400
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
401
|
+
|
|
402
|
+
client = AuthenticatedClient(
|
|
403
|
+
base_url=self.base_url,
|
|
404
|
+
token=self.token,
|
|
405
|
+
prefix="",
|
|
406
|
+
auth_header_name="X-API-Key",
|
|
407
|
+
headers=self.headers,
|
|
408
|
+
)
|
|
409
|
+
|
|
358
410
|
kwargs = {
|
|
359
411
|
"graph_id": graph_id,
|
|
360
412
|
"file_id": file_id,
|
|
361
|
-
"client":
|
|
413
|
+
"client": client,
|
|
362
414
|
"cascade": cascade,
|
|
363
415
|
}
|
|
364
416
|
|
|
@@ -104,9 +104,22 @@ class MaterializationClient:
|
|
|
104
104
|
force=options.force,
|
|
105
105
|
)
|
|
106
106
|
|
|
107
|
+
from ..client import AuthenticatedClient
|
|
108
|
+
|
|
109
|
+
if not self.token:
|
|
110
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
111
|
+
|
|
112
|
+
client = AuthenticatedClient(
|
|
113
|
+
base_url=self.base_url,
|
|
114
|
+
token=self.token,
|
|
115
|
+
prefix="",
|
|
116
|
+
auth_header_name="X-API-Key",
|
|
117
|
+
headers=self.headers,
|
|
118
|
+
)
|
|
119
|
+
|
|
107
120
|
kwargs = {
|
|
108
121
|
"graph_id": graph_id,
|
|
109
|
-
"client":
|
|
122
|
+
"client": client,
|
|
110
123
|
"body": request,
|
|
111
124
|
}
|
|
112
125
|
|
|
@@ -182,9 +195,22 @@ class MaterializationClient:
|
|
|
182
195
|
MaterializationStatus with staleness and timing information
|
|
183
196
|
"""
|
|
184
197
|
try:
|
|
198
|
+
from ..client import AuthenticatedClient
|
|
199
|
+
|
|
200
|
+
if not self.token:
|
|
201
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
202
|
+
|
|
203
|
+
client = AuthenticatedClient(
|
|
204
|
+
base_url=self.base_url,
|
|
205
|
+
token=self.token,
|
|
206
|
+
prefix="",
|
|
207
|
+
auth_header_name="X-API-Key",
|
|
208
|
+
headers=self.headers,
|
|
209
|
+
)
|
|
210
|
+
|
|
185
211
|
kwargs = {
|
|
186
212
|
"graph_id": graph_id,
|
|
187
|
-
"client":
|
|
213
|
+
"client": client,
|
|
188
214
|
}
|
|
189
215
|
|
|
190
216
|
response = get_materialization_status(**kwargs)
|
|
@@ -62,9 +62,22 @@ class TableClient:
|
|
|
62
62
|
List of TableInfo objects with metadata
|
|
63
63
|
"""
|
|
64
64
|
try:
|
|
65
|
+
from ..client import AuthenticatedClient
|
|
66
|
+
|
|
67
|
+
if not self.token:
|
|
68
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
69
|
+
|
|
70
|
+
client = AuthenticatedClient(
|
|
71
|
+
base_url=self.base_url,
|
|
72
|
+
token=self.token,
|
|
73
|
+
prefix="",
|
|
74
|
+
auth_header_name="X-API-Key",
|
|
75
|
+
headers=self.headers,
|
|
76
|
+
)
|
|
77
|
+
|
|
65
78
|
kwargs = {
|
|
66
79
|
"graph_id": graph_id,
|
|
67
|
-
"client":
|
|
80
|
+
"client": client,
|
|
68
81
|
}
|
|
69
82
|
|
|
70
83
|
response = list_tables(**kwargs)
|
|
@@ -120,9 +133,22 @@ class TableClient:
|
|
|
120
133
|
|
|
121
134
|
request = TableQueryRequest(sql=final_query)
|
|
122
135
|
|
|
136
|
+
from ..client import AuthenticatedClient
|
|
137
|
+
|
|
138
|
+
if not self.token:
|
|
139
|
+
raise Exception("No API key provided. Set X-API-Key in headers.")
|
|
140
|
+
|
|
141
|
+
client = AuthenticatedClient(
|
|
142
|
+
base_url=self.base_url,
|
|
143
|
+
token=self.token,
|
|
144
|
+
prefix="",
|
|
145
|
+
auth_header_name="X-API-Key",
|
|
146
|
+
headers=self.headers,
|
|
147
|
+
)
|
|
148
|
+
|
|
123
149
|
kwargs = {
|
|
124
150
|
"graph_id": graph_id,
|
|
125
|
-
"client":
|
|
151
|
+
"client": client,
|
|
126
152
|
"body": request,
|
|
127
153
|
}
|
|
128
154
|
|
|
@@ -148,14 +148,14 @@ robosystems_client/extensions/auth_integration.py,sha256=ABOJ8aVjfHehNGNzim1iR9-
|
|
|
148
148
|
robosystems_client/extensions/dataframe_utils.py,sha256=gK1bgkVqBF0TvWVdGQvqWrt-ur_Rw11j8uNtMoulLWE,12312
|
|
149
149
|
robosystems_client/extensions/element_mapping_client.py,sha256=yuh0QPQBPM33E7r6QWWDiKm3T4TfCdbn2kvO3Jlw4Cs,18516
|
|
150
150
|
robosystems_client/extensions/extensions.py,sha256=7vsD3QeIKbwhC1UqNskFjsfKkg_ZO3PPDnc6TxV3PoA,6722
|
|
151
|
-
robosystems_client/extensions/file_client.py,sha256=
|
|
151
|
+
robosystems_client/extensions/file_client.py,sha256=WNttw8BtdpLsb3N2fkvim-a8eDSshi8LM3nMtfEmLt0,11843
|
|
152
152
|
robosystems_client/extensions/graph_client.py,sha256=OBi0xj0SLIRKLeSu_DiGt2ZakCmhggvNrMP3jdRfEgQ,10326
|
|
153
|
-
robosystems_client/extensions/materialization_client.py,sha256=
|
|
153
|
+
robosystems_client/extensions/materialization_client.py,sha256=5QszocQXzlCE9exg_As0HfBhDBXsL-J2EYOUwHuGyh8,6819
|
|
154
154
|
robosystems_client/extensions/operation_client.py,sha256=B1qju-wWQrnrnVJixKGgsA_KEInviwJwdlJxzm_i7P0,13359
|
|
155
155
|
robosystems_client/extensions/query_client.py,sha256=cX3e8EBoTeg4Lwm6edJYRULM2UmGpfqNX3f48S8TQbE,19430
|
|
156
156
|
robosystems_client/extensions/sse_client.py,sha256=XvQIq3JQ0Yiax11E7cwclhupShYOpEMURM2cYQodiz8,15058
|
|
157
157
|
robosystems_client/extensions/subgraph_workspace_client.py,sha256=Ioc7FNJEKaD_kAJBeymwtFlVI-U9t47RouD5ibUHv4g,24036
|
|
158
|
-
robosystems_client/extensions/table_client.py,sha256=
|
|
158
|
+
robosystems_client/extensions/table_client.py,sha256=hegYiPlR-HMacyinDDACZaMeNn0bamkYtbkzDkVawVI,4521
|
|
159
159
|
robosystems_client/extensions/token_utils.py,sha256=qCK_s1vBzRnSYwtgncPZRLJVIw3WXmzqNTWjdEEpdgs,10899
|
|
160
160
|
robosystems_client/extensions/utils.py,sha256=vhmUnEsq-UEAMgNhmkqlbJg4oJj096QPiHALEHJ-y4A,16207
|
|
161
161
|
robosystems_client/extensions/view_builder_client.py,sha256=E1LSiDHAvPf2IhifGOliOAwk5vJyu5PWAnr8ZnyulZM,18590
|
|
@@ -414,7 +414,7 @@ robosystems_client/models/view_axis_config_member_labels_type_0.py,sha256=kkzpHx
|
|
|
414
414
|
robosystems_client/models/view_config.py,sha256=HQnqYjLMXRhjZLOc5ypwILriMFKuvPzu0hPQi2vyNoM,3795
|
|
415
415
|
robosystems_client/models/view_source.py,sha256=h66cASj-P_-qOptKv26uAIe9PtIewU2nTs42Ls-lFFk,4098
|
|
416
416
|
robosystems_client/models/view_source_type.py,sha256=KpgczHUeOinV01jdLvytZ2URKwcsRcp1doPx2D3USyw,169
|
|
417
|
-
robosystems_client-0.2.
|
|
418
|
-
robosystems_client-0.2.
|
|
419
|
-
robosystems_client-0.2.
|
|
420
|
-
robosystems_client-0.2.
|
|
417
|
+
robosystems_client-0.2.18.dist-info/METADATA,sha256=ozIcNAvC7Hf5CCRDjadlzmKZXK1ihSVc6VSQuU2OU7w,3904
|
|
418
|
+
robosystems_client-0.2.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
419
|
+
robosystems_client-0.2.18.dist-info/licenses/LICENSE,sha256=LjFqQPU4eQh7jAQ04SmE9eC0j74HCdXvzbo0hjW4mWo,1063
|
|
420
|
+
robosystems_client-0.2.18.dist-info/RECORD,,
|
|
File without changes
|
{robosystems_client-0.2.17.dist-info → robosystems_client-0.2.18.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|