upgini 1.1.305__py3-none-any.whl → 1.1.306__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 upgini might be problematic. Click here for more details.
- upgini/__about__.py +1 -1
- upgini/data_source/data_source_publisher.py +16 -0
- upgini/http.py +6 -0
- {upgini-1.1.305.dist-info → upgini-1.1.306.dist-info}/METADATA +1 -1
- {upgini-1.1.305.dist-info → upgini-1.1.306.dist-info}/RECORD +7 -7
- {upgini-1.1.305.dist-info → upgini-1.1.306.dist-info}/WHEEL +1 -1
- {upgini-1.1.305.dist-info → upgini-1.1.306.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.1.
|
|
1
|
+
__version__ = "1.1.306"
|
|
@@ -418,3 +418,19 @@ class DataSourcePublisher:
|
|
|
418
418
|
response = self._rest_client.union_search_tasks(request, "trace_id")
|
|
419
419
|
print(response)
|
|
420
420
|
return response
|
|
421
|
+
|
|
422
|
+
def reannounce_all_ads(self):
|
|
423
|
+
trace_id = str(uuid.uuid4())
|
|
424
|
+
with MDC(trace_id=trace_id):
|
|
425
|
+
try:
|
|
426
|
+
task_id = self._rest_client.reannounce_all_ads(trace_id)
|
|
427
|
+
with Spinner():
|
|
428
|
+
status_response = self._rest_client.poll_ads_management_task_status(task_id, trace_id)
|
|
429
|
+
while status_response["status"] not in self.FINAL_STATUSES:
|
|
430
|
+
time.sleep(5)
|
|
431
|
+
status_response = self._rest_client.poll_ads_management_task_status(task_id, trace_id)
|
|
432
|
+
|
|
433
|
+
if status_response["status"] != "COMPLETED":
|
|
434
|
+
raise Exception("Failed to reannounce all ADS: " + status_response["errorMessage"])
|
|
435
|
+
except Exception:
|
|
436
|
+
self.logger.exception("Failed to reannounce all ADS-es")
|
upgini/http.py
CHANGED
|
@@ -285,6 +285,7 @@ class _RestClient:
|
|
|
285
285
|
DEACTIVATE_ADS_URI = "private/api/v2/ads/deactivate"
|
|
286
286
|
TOGGLE_ADS_URI_FMT = "private/api/v2/ads/{0}/toggle"
|
|
287
287
|
DELETE_ADS_URI_FMT = "private/api/v2/ads/{0}"
|
|
288
|
+
REANNOUNCE_ALL_ADS_URI_FMT = "private/api/v2/ads/reannounce-all-ads"
|
|
288
289
|
POLL_ADS_MANAGEMENT_STATUS_URI_FMT = "private/api/v2/ads/management-task/{0}"
|
|
289
290
|
GET_ADS_DESCRIPTION_URI_FMT = "private/api/v2/ads/{0}"
|
|
290
291
|
GET_ALL_ADS_DESCRIPTIONS_URI = "private/api/v2/ads/descriptions"
|
|
@@ -726,6 +727,11 @@ class _RestClient:
|
|
|
726
727
|
api_path = self.DEACTIVATE_ADS_URI
|
|
727
728
|
self._with_unauth_retry(lambda: self._send_post_req(api_path, trace_id, request, result_format=None))
|
|
728
729
|
|
|
730
|
+
def reannounce_all_ads(self, trace_id: str) -> str:
|
|
731
|
+
api_path = self.REANNOUNCE_ALL_ADS_URI_FMT
|
|
732
|
+
response = self._with_unauth_retry(lambda: self._send_post_req(api_path, trace_id))
|
|
733
|
+
return response["adsManagementTaskId"]
|
|
734
|
+
|
|
729
735
|
def toggle_ads(self, ads_definition_id: str, trace_id: str):
|
|
730
736
|
api_path = self.TOGGLE_ADS_URI_FMT.format(ads_definition_id)
|
|
731
737
|
return self._with_unauth_retry(lambda: self._send_post_req(api_path, trace_id))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=okL1wSisFFnkKhJ4nbM09p9rNtG-hKV5SxZSxyhmBQk,24
|
|
2
2
|
upgini/__init__.py,sha256=ObEtjFkIssl83qeKNMLpIQygfwK8TzztwiI43YTsAP0,353
|
|
3
3
|
upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
|
|
4
4
|
upgini/dataset.py,sha256=MOzBVsvzlHLxNfPWtMaXC_jIPeW7_gUvbSGeXnsPgNI,46158
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
6
|
upgini/features_enricher.py,sha256=8grYkWdix0NogYAY7YjUVe2Tqfra6NAxM78N9MlLF30,183572
|
|
7
|
-
upgini/http.py,sha256=
|
|
7
|
+
upgini/http.py,sha256=a4Epc9YLIJBuYk4t8E_2-QDLBtJFqKO35jn2SnYQZCg,42920
|
|
8
8
|
upgini/lazy_import.py,sha256=EwoM0msNGbSmWBhGbrLDny1DSnOlvTxCjmMKPxYlDms,610
|
|
9
9
|
upgini/metadata.py,sha256=E5WWZ_MkjGyYNQh_LnwMIBHyqPx1fxk-qhEfQIJnzq8,10209
|
|
10
10
|
upgini/metrics.py,sha256=Tu5cN8RlhOSSMWUTXRSkdl8SWBqR1N_2eJpBum9pZxc,30926
|
|
@@ -23,7 +23,7 @@ upgini/autofe/operand.py,sha256=MKEsl3zxpWzRDpTkE0sNJxTu62U20sWOvEKhPjUWS6s,2915
|
|
|
23
23
|
upgini/autofe/unary.py,sha256=ZWjLd-CUkNt_PpM8YuWLLipW1v_RdBlsl4JxXIVo9aM,3652
|
|
24
24
|
upgini/autofe/vector.py,sha256=dLxfAstJs-gw_OQ1xxoxcM6pVzORlV0HVzdzt7cLXVQ,606
|
|
25
25
|
upgini/data_source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
upgini/data_source/data_source_publisher.py,sha256=
|
|
26
|
+
upgini/data_source/data_source_publisher.py,sha256=y0tYFp7N3bSI7BwQ5SRF8r0bRaI3z6Zc1fsZezVg7hE,20552
|
|
27
27
|
upgini/mdc/__init__.py,sha256=aM08nIWFc2gWdWUa3_IuEnNND0cQPkBGnYpRMnfFN8k,1019
|
|
28
28
|
upgini/mdc/context.py,sha256=3u1B-jXt7tXEvNcV3qmR9SDCseudnY7KYsLclBdwVLk,1405
|
|
29
29
|
upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
|
|
|
57
57
|
upgini/utils/target_utils.py,sha256=Y96_PJ5cC-WsEbeqg20v9uqywDQobLoTb-xoP7S3o4E,7807
|
|
58
58
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
|
59
59
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
60
|
-
upgini-1.1.
|
|
61
|
-
upgini-1.1.
|
|
62
|
-
upgini-1.1.
|
|
63
|
-
upgini-1.1.
|
|
60
|
+
upgini-1.1.306.dist-info/METADATA,sha256=GUAb3dq_ebpqOqGoH4gEydc7T1Z91cLIur9nMvmrUEg,48153
|
|
61
|
+
upgini-1.1.306.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
62
|
+
upgini-1.1.306.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
63
|
+
upgini-1.1.306.dist-info/RECORD,,
|
|
File without changes
|