rapidata 2.17.1__py3-none-any.whl → 2.19.0__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 rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +2 -0
- rapidata/api_client/__init__.py +7 -5
- rapidata/api_client/api/order_api.py +3 -6
- rapidata/api_client/api/pipeline_api.py +665 -98
- rapidata/api_client/api/validation_set_api.py +6 -6
- rapidata/api_client/models/__init__.py +7 -5
- rapidata/api_client/models/add_user_response_result.py +3 -3
- rapidata/api_client/models/campaign_query_result.py +2 -2
- rapidata/api_client/models/campaign_status.py +2 -1
- rapidata/api_client/models/create_order_model_user_filters_inner.py +39 -9
- rapidata/api_client/models/get_simple_workflow_results_result.py +3 -3
- rapidata/api_client/models/get_validation_rapids_result.py +143 -0
- rapidata/api_client/models/get_validation_rapids_result_asset.py +174 -0
- rapidata/api_client/models/get_validation_rapids_result_paged_result.py +105 -0
- rapidata/api_client/models/get_validation_rapids_result_payload.py +252 -0
- rapidata/api_client/models/get_validation_rapids_result_truth.py +258 -0
- rapidata/api_client/models/not_user_filter_model.py +102 -0
- rapidata/api_client/models/or_user_filter_model.py +106 -0
- rapidata/api_client/models/query_validation_rapids_result.py +9 -9
- rapidata/api_client/rest.py +143 -169
- rapidata/api_client_README.md +9 -5
- rapidata/rapidata_client/__init__.py +2 -0
- rapidata/rapidata_client/filter/__init__.py +2 -0
- rapidata/rapidata_client/filter/not_filter.py +30 -0
- rapidata/rapidata_client/filter/or_filter.py +30 -0
- rapidata/rapidata_client/filter/rapidata_filters.py +6 -3
- rapidata/rapidata_client/order/rapidata_order.py +2 -2
- rapidata/rapidata_client/rapidata_client.py +27 -16
- rapidata/rapidata_client/selection/__init__.py +2 -0
- rapidata/rapidata_client/selection/static_selection.py +22 -0
- rapidata/rapidata_client/validation/validation_set_manager.py +1 -1
- rapidata/service/credential_manager.py +2 -2
- rapidata/service/openapi_service.py +56 -28
- {rapidata-2.17.1.dist-info → rapidata-2.19.0.dist-info}/METADATA +2 -1
- {rapidata-2.17.1.dist-info → rapidata-2.19.0.dist-info}/RECORD +37 -28
- rapidata/service/token_manager.py +0 -176
- {rapidata-2.17.1.dist-info → rapidata-2.19.0.dist-info}/LICENSE +0 -0
- {rapidata-2.17.1.dist-info → rapidata-2.19.0.dist-info}/WHEEL +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
rapidata/__init__.py,sha256
|
|
2
|
-
rapidata/api_client/__init__.py,sha256=
|
|
1
|
+
rapidata/__init__.py,sha256=-uqhIlYjh1gb4HiE_7ga8pXa2oIFfpYRvyPd6Axx4wo,655
|
|
2
|
+
rapidata/api_client/__init__.py,sha256=jtvAjo0zg4XDehXuSdMnaaCS41mptb5CTAOA9Lz6TtA,26420
|
|
3
3
|
rapidata/api_client/api/__init__.py,sha256=z_KCn1Nw9RrVXzdC2RCpoEk7_vU19JT261Opw04RqNI,1129
|
|
4
4
|
rapidata/api_client/api/campaign_api.py,sha256=1ajX0hSnA4O5GacJLIGkAgorPlNDRVaEZY029Pkutl4,71353
|
|
5
5
|
rapidata/api_client/api/client_api.py,sha256=qGiNJHQarNEFNmkrgWeHmlVX96WuDZINozhYaNfiy3c,53357
|
|
@@ -10,26 +10,26 @@ rapidata/api_client/api/dataset_api.py,sha256=M-FwzuKrBu-dcZEK0FfcvAGd-lk4DLipnt
|
|
|
10
10
|
rapidata/api_client/api/feedback_api.py,sha256=9ecA2GTvEMkCugXm6McGWbK2bT9gSOb8C-LT8syZ3s0,11661
|
|
11
11
|
rapidata/api_client/api/identity_api.py,sha256=glClYKwEPyGUDY_SWef-8FGjbbui_RIpOeBhwfzTxAk,78117
|
|
12
12
|
rapidata/api_client/api/newsletter_api.py,sha256=pdJ7Gdxw7yKZromzGNhM1hRhzrqm4nDRib5xVvnClME,34230
|
|
13
|
-
rapidata/api_client/api/order_api.py,sha256=
|
|
14
|
-
rapidata/api_client/api/pipeline_api.py,sha256=
|
|
13
|
+
rapidata/api_client/api/order_api.py,sha256=aAf6bS4gTdSlDI42wjUMDRw0lYP4L3VQjk7JsZsEqKk,413101
|
|
14
|
+
rapidata/api_client/api/pipeline_api.py,sha256=n4JPczdE01qc1AbIgx9nqJvd7ltdo_LsHX4N_lyLwNs,110546
|
|
15
15
|
rapidata/api_client/api/rapid_api.py,sha256=wsUdeuL0JOyRoGwZ6bxUli3ik8aZV9vloD6fIjUAJsw,173070
|
|
16
16
|
rapidata/api_client/api/rapidata_identity_api_api.py,sha256=-kgoDuLdh-R4MQ7JPi3kQ0WDFKbmI0MkCjxwHXBmksA,9824
|
|
17
17
|
rapidata/api_client/api/simple_workflow_api.py,sha256=676u_J6hIL5u1V0jLuSEkkvHwBQBcpHGSfyd0147x-0,12806
|
|
18
18
|
rapidata/api_client/api/user_info_api.py,sha256=FuuA95Beeky-rnqIoSUe2-WQ7oVTfq0RElX0jfKXT0w,10042
|
|
19
19
|
rapidata/api_client/api/validation_api.py,sha256=XET31snfRc78TJre3jGOlb0bAs8wr82qhRiURiitUaE,98706
|
|
20
|
-
rapidata/api_client/api/validation_set_api.py,sha256=
|
|
20
|
+
rapidata/api_client/api/validation_set_api.py,sha256=Qg8tpVpxWiwU82Qon6OPjVJfoxNuRwK0cJlExw2XTkQ,213801
|
|
21
21
|
rapidata/api_client/api/workflow_api.py,sha256=a4LSlqk4X08YEKm4pS7wQeK1tK3JPKJ2xW0ye252r7A,98898
|
|
22
22
|
rapidata/api_client/api_client.py,sha256=EDhxAOUc5JFWvFsF1zc726Q7GoEFkuB8uor5SlGx9K4,27503
|
|
23
23
|
rapidata/api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
24
24
|
rapidata/api_client/configuration.py,sha256=g472vHVPLBotq8EkfSXP4sbp7xnn-3sb8O8BBlRWK1I,15931
|
|
25
25
|
rapidata/api_client/exceptions.py,sha256=eLLd1fxM0Ygf3IIG6aNx9hdy79drst5Cem0UjI_NamM,5978
|
|
26
|
-
rapidata/api_client/models/__init__.py,sha256=
|
|
26
|
+
rapidata/api_client/models/__init__.py,sha256=W0vtAsfuN4TvOhUcA2I1Em9TsPEA1yotVwHbaxU3HwQ,24750
|
|
27
27
|
rapidata/api_client/models/ab_test_selection.py,sha256=xQcE1BgKSnkTcmIuroeVOAQcAhGkHLlMP9XjakMFgDc,4327
|
|
28
28
|
rapidata/api_client/models/ab_test_selection_a_inner.py,sha256=2sM9nimGo85Fk1k7yZQnp-3ncMXcz_wvYBCR8NG1Sb8,10771
|
|
29
29
|
rapidata/api_client/models/add_campaign_artifact_result.py,sha256=4IvFVS-tLlL6eHsWp-IZ_ul5T30-h3YEwd2B5ioBbgY,2582
|
|
30
30
|
rapidata/api_client/models/add_campaign_model.py,sha256=HRFP1EGEzroTC2xzwvJoTaGiAlYUcprUlFkjxmxpOas,7478
|
|
31
31
|
rapidata/api_client/models/add_campaign_model_user_filters_inner.py,sha256=i7R_ToWdsfkOZechTm_-KE01kucRGvsJ_tVIJWqkGgw,11152
|
|
32
|
-
rapidata/api_client/models/add_user_response_result.py,sha256=
|
|
32
|
+
rapidata/api_client/models/add_user_response_result.py,sha256=gON-mQagMa1gi6fIUFSNLc7R8CozOdx0-nYnRJksL3Y,4015
|
|
33
33
|
rapidata/api_client/models/add_user_response_result_validation_truth.py,sha256=1_BKJKBayJ2h3HspPoMwbCrtG_zzMIy8y_b4RC8r6oM,11916
|
|
34
34
|
rapidata/api_client/models/add_validation_rapid_model.py,sha256=1qcTMyQMwX--K6PDct-MiSJieAN4UCFabaINGxVAPSQ,5396
|
|
35
35
|
rapidata/api_client/models/add_validation_rapid_model_payload.py,sha256=TxiQCEfoEz2LvSCLyPEbqs1f9iKcGZ4p1zxG3FZoo1U,11825
|
|
@@ -54,9 +54,9 @@ rapidata/api_client/models/box_shape.py,sha256=8sPLY_p1e9yjCGtUBbtfeZcj2StrnPRY8
|
|
|
54
54
|
rapidata/api_client/models/campaign_artifact_model.py,sha256=tAFlTCUGquSE6w6cKFrozbdRtRT0-oCDvH4rgFSputE,3126
|
|
55
55
|
rapidata/api_client/models/campaign_query_model.py,sha256=jyJVUrxumUmkx_Al4yoLi0fmXaxxEmE1pKMYdJGEkOM,3258
|
|
56
56
|
rapidata/api_client/models/campaign_query_model_paged_result.py,sha256=Aggg5CzXPO6dL-GeSf0RU7WKYelvFagEVq8jaz2MA6g,3518
|
|
57
|
-
rapidata/api_client/models/campaign_query_result.py,sha256=
|
|
57
|
+
rapidata/api_client/models/campaign_query_result.py,sha256=7gJDZrAQg7h1x2OtsIJ1nTQm93s3YNXQ3QvCVLBgrf0,3352
|
|
58
58
|
rapidata/api_client/models/campaign_query_result_paged_result.py,sha256=VIjrAUE3b7s_Kmwu2ihA2fjs-6Y5dZxLsYZ5Nzg6xuE,3526
|
|
59
|
-
rapidata/api_client/models/campaign_status.py,sha256=
|
|
59
|
+
rapidata/api_client/models/campaign_status.py,sha256=2RH4JWHBnbJpCHVduudpq2On9kEJSBw4ucnPtDmu2Ao,863
|
|
60
60
|
rapidata/api_client/models/campaign_user_filter_model.py,sha256=Jl92xwZPA_qQxeVkxGmT987KTG7Bdbj5zysugricbKo,3028
|
|
61
61
|
rapidata/api_client/models/capped_selection.py,sha256=JdufQsUToYeVDgVQ8-hwvOqLuy8u1baMmy_DvNKp6B4,3726
|
|
62
62
|
rapidata/api_client/models/capped_selection_selections_inner.py,sha256=pIT5w0rtbY2h__5xbsVj0zXEciaNMu7Ctfq1o-YZxjE,9234
|
|
@@ -124,7 +124,7 @@ rapidata/api_client/models/create_legacy_order_result.py,sha256=BR1XqPKq9QkDe0Uy
|
|
|
124
124
|
rapidata/api_client/models/create_order_model.py,sha256=CkCBzqF5vWK-Rswy5MlIWpe8qZIaSnAsEVjF3zKMbn8,10202
|
|
125
125
|
rapidata/api_client/models/create_order_model_referee.py,sha256=dxQ9SDiBjFIKYjctVNeiuGvjZwzIa0Q8JpW7iRei00I,5748
|
|
126
126
|
rapidata/api_client/models/create_order_model_selections_inner.py,sha256=9p9BJKHN3WhRiu-FwWf421COAxeGmm1KkkyDT7UW5uc,8354
|
|
127
|
-
rapidata/api_client/models/create_order_model_user_filters_inner.py,sha256=
|
|
127
|
+
rapidata/api_client/models/create_order_model_user_filters_inner.py,sha256=FhMQ8p_25vg-irqRfkvl7hdm7yBWqY7TvSe9DkgJpYA,12898
|
|
128
128
|
rapidata/api_client/models/create_order_model_workflow.py,sha256=cy7bD2kWvLkCgFdrViAG63xtYDIdVOn0dD74GRxni_A,6638
|
|
129
129
|
rapidata/api_client/models/create_order_result.py,sha256=zGr4EOKdjfy5SBLvox_iiCwwc7dXOfi70M0WYSZGgH4,3272
|
|
130
130
|
rapidata/api_client/models/create_rapid_result.py,sha256=ECREjyzsTg6leWTF19E-QtqmyaTIeIZzpp_sO9iA4kY,2535
|
|
@@ -200,10 +200,15 @@ rapidata/api_client/models/get_rapid_responses_result.py,sha256=Tz_s-64Gn1KEQpZo
|
|
|
200
200
|
rapidata/api_client/models/get_responses_result.py,sha256=PKotTgmo6kM6a65DNHvd0Eu6B6DghQiTdEtbDyErXhY,3012
|
|
201
201
|
rapidata/api_client/models/get_simple_workflow_result_overview_result.py,sha256=ThHj63FCET3FcfC8jBjTG8opL2ZUMwg4BZFIzXFaC8I,6554
|
|
202
202
|
rapidata/api_client/models/get_simple_workflow_results_model.py,sha256=r4DZspzPrwaI4DrC4OH-mwUvibcS0TzK9O8CFnsURSc,4289
|
|
203
|
-
rapidata/api_client/models/get_simple_workflow_results_result.py,sha256=
|
|
203
|
+
rapidata/api_client/models/get_simple_workflow_results_result.py,sha256=WNBHFW-D6tlMzNp9P7nGfoDoarjjwb2YwjlCCV1tA00,4411
|
|
204
204
|
rapidata/api_client/models/get_simple_workflow_results_result_paged_result.py,sha256=DWimv7FmvJmixjQvDFeTE_Q5jHLpLdQmPlXF_9iWSiY,3616
|
|
205
205
|
rapidata/api_client/models/get_validation_rapids_query.py,sha256=teC4ryyIXJkRwafaSorysBIsKJuO5C1L8f6juJMwrNs,4894
|
|
206
206
|
rapidata/api_client/models/get_validation_rapids_query_paged_result.py,sha256=ifyJ7Iy7VzTWxtwb2q5q5id927Iil00V3Nk9QqclsDo,3567
|
|
207
|
+
rapidata/api_client/models/get_validation_rapids_result.py,sha256=rfJ5jnRKf1W-84v8kxC3n96c8sR6Ub0Q-qGko0s_yHw,5848
|
|
208
|
+
rapidata/api_client/models/get_validation_rapids_result_asset.py,sha256=7gIOQGFB3hzgz31R66C0sPhHmGQ6poy71_x0TcwGNgA,7185
|
|
209
|
+
rapidata/api_client/models/get_validation_rapids_result_paged_result.py,sha256=W3HYqV62iIcm3yTVN1FgOAwOeWpumgUDA8jiLZ7EzP0,3575
|
|
210
|
+
rapidata/api_client/models/get_validation_rapids_result_payload.py,sha256=yVO4ku7FNovq6t8Chp0tFwerfY2Q4bBxa0xkqcuDUeo,11838
|
|
211
|
+
rapidata/api_client/models/get_validation_rapids_result_truth.py,sha256=Mn51HdYp7SiN2DIG8lnR8y53YjIMHK-gr4hvWXgtQl4,11868
|
|
207
212
|
rapidata/api_client/models/get_validation_set_by_id_result.py,sha256=dsonFbNl_Zj4mwUmo4Hc6QSDfpc1MDaiFzbEC3Ta_Uo,2845
|
|
208
213
|
rapidata/api_client/models/get_workflow_by_id_result.py,sha256=l8DvKolvRGJQtMuTXLVwJuCN0eaSET-gi0p6TV6phuQ,2886
|
|
209
214
|
rapidata/api_client/models/get_workflow_by_id_result_workflow.py,sha256=Pc-kq2AnoxqVQmJj52Fptyb-RoTihwq73GpODiw6trk,5735
|
|
@@ -262,6 +267,7 @@ rapidata/api_client/models/newsletter_model.py,sha256=wXWtCaodMw40dhX0krLuTRMCBs
|
|
|
262
267
|
rapidata/api_client/models/no_validation_workflow_rapid_selection_config.py,sha256=SgOfHf2WXg97Ko_2YcPl9iMekkChtrQPGwFm93TpBMo,3389
|
|
263
268
|
rapidata/api_client/models/not_available_yet_result.py,sha256=euGeN081IZ4mCaiJJD_lz_655Hn5n6Oomq6980Yzy1w,2996
|
|
264
269
|
rapidata/api_client/models/not_started_rapid_model.py,sha256=_IVYY9C2i8e4jaM6EDerk7ynKYwajX_-dtmTscCUe_U,2954
|
|
270
|
+
rapidata/api_client/models/not_user_filter_model.py,sha256=IScOwYUVryZQPgzLWCCX53QAO-xeYh_5bIpzOsXAnrs,3402
|
|
265
271
|
rapidata/api_client/models/null_asset.py,sha256=88mm-8iw4dJXCh4lYWYJQLYDxQiDOvqfjQnqSiOn8sg,3470
|
|
266
272
|
rapidata/api_client/models/null_asset_model.py,sha256=iYkiSxsLr1aJubdfsLKi468YWXINl1IiQ6CzaOmna4g,3716
|
|
267
273
|
rapidata/api_client/models/null_asset_model1.py,sha256=FAu0ayR7eK_mssNRFwDiaLTumoB44MiZzvWg6Lf3tOw,3601
|
|
@@ -270,6 +276,7 @@ rapidata/api_client/models/online_pair_maker_config.py,sha256=j29pRLXwNzlMs4uOV6
|
|
|
270
276
|
rapidata/api_client/models/online_pair_maker_config_model.py,sha256=2jvkHrlEJhde9iD6yJ4TQCFE8-gWbEq8EQzm6GbYg2w,3580
|
|
271
277
|
rapidata/api_client/models/online_pair_maker_information.py,sha256=SSVJUesx5nptyi9laNMT-K6JNieFn5IuegtqbbWyLCY,3609
|
|
272
278
|
rapidata/api_client/models/only_validation_workflow_rapid_selection_config.py,sha256=I_k5RsXAXbK8Oe3yhQjN_JO1t1kvPnA4pemQS_CzHmw,3231
|
|
279
|
+
rapidata/api_client/models/or_user_filter_model.py,sha256=16MfqCkzrGtQIIsVNmXuRjMk9yNPvfKKvoaFcuIgkag,3593
|
|
273
280
|
rapidata/api_client/models/order_model.py,sha256=bkC1-XRSCOhDrzMa6t1Io_MynNmnoMA1J3VXvV5221Y,3864
|
|
274
281
|
rapidata/api_client/models/order_model_paged_result.py,sha256=7wHL_M1NYHFWFnaWjqiIx2GCjwWup7Dk1dBNp7_oiLk,3453
|
|
275
282
|
rapidata/api_client/models/order_query_get200_response.py,sha256=Zt6TqghldmhkXrF8eIUWXVCp1Af7jiD6iMbuvdj02G8,5876
|
|
@@ -299,7 +306,7 @@ rapidata/api_client/models/public_text_metadata_input.py,sha256=n9-TY_32304RZ4N6
|
|
|
299
306
|
rapidata/api_client/models/query_campaigns_model.py,sha256=QFN637qh7qG0QjuJfTpimR57ACtItxTKn18rbdE-BKM,4138
|
|
300
307
|
rapidata/api_client/models/query_model.py,sha256=FP9dAgpgnlyxQfQhYWSvyTdRTjd9fDBdj8tdijLdw2g,4052
|
|
301
308
|
rapidata/api_client/models/query_orders_model.py,sha256=eRLuM82LOiKNFywC7vfKlAUvCGolUfTU5w-GUO4TAdA,4126
|
|
302
|
-
rapidata/api_client/models/query_validation_rapids_result.py,sha256=
|
|
309
|
+
rapidata/api_client/models/query_validation_rapids_result.py,sha256=4uhNnqr6HrxmruDS0ffgD8evZTK7Vzr3kxtSjBuwqzU,5856
|
|
303
310
|
rapidata/api_client/models/query_validation_rapids_result_asset.py,sha256=A8QsfT5dXwZ0LJYRL-Uwk3opcyVy21qOmIocNYZin1Q,7201
|
|
304
311
|
rapidata/api_client/models/query_validation_rapids_result_paged_result.py,sha256=Xe6rexVMSW9tWcO3w93tGmggpXN-lgPNqn9-lkWe_9o,3591
|
|
305
312
|
rapidata/api_client/models/query_validation_rapids_result_payload.py,sha256=FELmkIBU6aHLv0a283-RdELd4AGZVLKL6SIwYhftm_4,11854
|
|
@@ -403,9 +410,9 @@ rapidata/api_client/models/workflow_labeling_step_model.py,sha256=iXeIb78bdMhGFj
|
|
|
403
410
|
rapidata/api_client/models/workflow_split_model.py,sha256=zthOSaUl8dbLhLymLK_lrPTBpeV1a4cODLxnHmNCAZw,4474
|
|
404
411
|
rapidata/api_client/models/workflow_split_model_filter_configs_inner.py,sha256=1Fx9uZtztiiAdMXkj7YeCqt7o6VkG9lKf7D7UP_h088,7447
|
|
405
412
|
rapidata/api_client/models/workflow_state.py,sha256=5LAK1se76RCoozeVB6oxMPb8p_5bhLZJqn7q5fFQWis,850
|
|
406
|
-
rapidata/api_client/rest.py,sha256=
|
|
407
|
-
rapidata/api_client_README.md,sha256=
|
|
408
|
-
rapidata/rapidata_client/__init__.py,sha256=
|
|
413
|
+
rapidata/api_client/rest.py,sha256=Nnn1XE9sVUprPm_6AsUmetb_bd9dMjynDOob6y8NJNE,8775
|
|
414
|
+
rapidata/api_client_README.md,sha256=WMuo7wBjQ5nVhYAt9kFrpdqa0Y7QU4rb5u3525g0dXU,54350
|
|
415
|
+
rapidata/rapidata_client/__init__.py,sha256=4Yg_2NvWhKusvcosuWzyrlJdjRnxXqNQUXDgyQrcNPQ,949
|
|
409
416
|
rapidata/rapidata_client/assets/__init__.py,sha256=hKgrOSn8gJcBSULaf4auYhH1S1N5AfcwIhBSq1BOKwQ,323
|
|
410
417
|
rapidata/rapidata_client/assets/_base_asset.py,sha256=B2YWH1NgaeYUYHDW3OPpHM_bqawHbH4EjnRCE2BYwiM,298
|
|
411
418
|
rapidata/rapidata_client/assets/_media_asset.py,sha256=9IKNKWarBJ-aAxfTjh80ScNsHlWGJnd55fsDbrf8x4s,10336
|
|
@@ -416,7 +423,7 @@ rapidata/rapidata_client/country_codes/__init__.py,sha256=FB9Dcks44J6C6YBSYmTmNZ
|
|
|
416
423
|
rapidata/rapidata_client/country_codes/country_codes.py,sha256=ePHqeb7y9DWQZAnddBzPx1puYBcrgUjdR2sbFijuFD8,283
|
|
417
424
|
rapidata/rapidata_client/demographic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
418
425
|
rapidata/rapidata_client/demographic/demographic_manager.py,sha256=XlgXngx-37Sow2B3jisVIWo6NrMWVI7aJqu9OwF9kCA,2143
|
|
419
|
-
rapidata/rapidata_client/filter/__init__.py,sha256=
|
|
426
|
+
rapidata/rapidata_client/filter/__init__.py,sha256=ttc63dWEQQwDRD8lirJgamjv_RLvc20IQydcqkHq1N4,416
|
|
420
427
|
rapidata/rapidata_client/filter/_base_filter.py,sha256=ytiSyeb9dvNZf93zwgb4PRDzf9ebsAu4wHBn4x49Re0,195
|
|
421
428
|
rapidata/rapidata_client/filter/age_filter.py,sha256=oRjGY65gE_X8oa0D0XRyvKAb4_Z6XOOaGTWykRSfLFA,739
|
|
422
429
|
rapidata/rapidata_client/filter/campaign_filter.py,sha256=6ZT11-gub8349QcRwuHt8AcBY18F7BdLRZ2Ch_vjLyU,735
|
|
@@ -427,7 +434,9 @@ rapidata/rapidata_client/filter/language_filter.py,sha256=reQHirEGXUBQaLwtEznK5O
|
|
|
427
434
|
rapidata/rapidata_client/filter/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
428
435
|
rapidata/rapidata_client/filter/models/age_group.py,sha256=9Lk_zvuGqJZNij_CLFNLwE07piUaDrZMyAXzFAk6FKc,1203
|
|
429
436
|
rapidata/rapidata_client/filter/models/gender.py,sha256=aXg6Kql2BIy8d5d1lCVi1axMWnyN1FFgPDU6fh2hYUM,627
|
|
430
|
-
rapidata/rapidata_client/filter/
|
|
437
|
+
rapidata/rapidata_client/filter/not_filter.py,sha256=I7crEyOCs53uS0VI48s9EqC6PAFfV9EZG3upwFBJwZo,1189
|
|
438
|
+
rapidata/rapidata_client/filter/or_filter.py,sha256=u6vkXMTG_j15SbY3bkbnXbxJMDgEsH5rdoFLbuoLQmo,1345
|
|
439
|
+
rapidata/rapidata_client/filter/rapidata_filters.py,sha256=ZOayFtIlACfegZSoA94YFZ-fJmqr5Pf161Z_IjiZWPg,1559
|
|
431
440
|
rapidata/rapidata_client/filter/user_score_filter.py,sha256=2C78zkWm5TnfkxGbV1ER2xB7s9ynpacaibzyRZKG8Cc,1566
|
|
432
441
|
rapidata/rapidata_client/metadata/__init__.py,sha256=cVAGs3F1i5BiimZ9m-aVXAiVyfqLMtSn59nqfRFmIxs,248
|
|
433
442
|
rapidata/rapidata_client/metadata/_base_metadata.py,sha256=t2kFqaz5BkEaYYj93Pw3h7zWVDq_S5ZkDxjDIRd21_I,189
|
|
@@ -438,15 +447,15 @@ rapidata/rapidata_client/metadata/_select_words_metadata.py,sha256=-MK5yQDi_G3BK
|
|
|
438
447
|
rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
439
448
|
rapidata/rapidata_client/order/_rapidata_dataset.py,sha256=KyEDb4NvlY4uzN3GjiX331VSGOq_I6FhvTnyKrpo4Sg,19400
|
|
440
449
|
rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=De-gNvOnuXHz6QaRdNpr0_3zOkIEKu8hgtZkatzxZQ4,13155
|
|
441
|
-
rapidata/rapidata_client/order/rapidata_order.py,sha256=
|
|
450
|
+
rapidata/rapidata_client/order/rapidata_order.py,sha256=cz1bXkoS7y_MuJDmjdXao7nbCFd8UF4bb5SHZtOYDjI,10483
|
|
442
451
|
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=HQzZAnwKnwWl2wLcZPqxQRnth1xWhVoGNkMkzzYbjqA,30615
|
|
443
452
|
rapidata/rapidata_client/order/rapidata_results.py,sha256=0y8EOiqUV7XuwpRJyV53mfo-ddRV1cUPdWexbPEVOHM,8044
|
|
444
|
-
rapidata/rapidata_client/rapidata_client.py,sha256=
|
|
453
|
+
rapidata/rapidata_client/rapidata_client.py,sha256=fcWlmmNCZahK40Ox4aY153tEihIpwkUxYTuiypKF2SY,2857
|
|
445
454
|
rapidata/rapidata_client/referee/__init__.py,sha256=q0Hv9nmfEpyChejtyMLT8hWKL0vTTf_UgUXPYNJ-H6M,153
|
|
446
455
|
rapidata/rapidata_client/referee/_base_referee.py,sha256=MdFOhdxt3sRnWXLDKLJZKFdVpjBGn9jypPnWWQ6msQA,496
|
|
447
456
|
rapidata/rapidata_client/referee/_early_stopping_referee.py,sha256=ULbokQZ91wc9D_20qHUhe55D28D9eTY1J1cMp_-oIDc,2088
|
|
448
457
|
rapidata/rapidata_client/referee/_naive_referee.py,sha256=PVR8uy8hfRjr2DBzdOFyvou6S3swNc-4UvgjhO-09TU,1209
|
|
449
|
-
rapidata/rapidata_client/selection/__init__.py,sha256=
|
|
458
|
+
rapidata/rapidata_client/selection/__init__.py,sha256=OimK44ig39A3kHCR_JGNO4FiUYJ6JUY0ZT0J8dz32Rs,475
|
|
450
459
|
rapidata/rapidata_client/selection/_base_selection.py,sha256=tInbWOgxT_4CHkr5QHoG55ZcUi1ZmfcEGIwLKKCnN20,147
|
|
451
460
|
rapidata/rapidata_client/selection/ab_test_selection.py,sha256=fymubkVMawqJmYp9FKzWXTki9tgBgoj3cOP8rG9oOd0,1284
|
|
452
461
|
rapidata/rapidata_client/selection/capped_selection.py,sha256=iWhbM1LcayhgFm7oKADXCaKHGdiQIupI0jbYuuEVM2A,1184
|
|
@@ -455,6 +464,7 @@ rapidata/rapidata_client/selection/demographic_selection.py,sha256=l4vnNbzlf9ED6
|
|
|
455
464
|
rapidata/rapidata_client/selection/labeling_selection.py,sha256=v26QogjmraFfRoSIgWZl6NMIW_TqbGeuCI2p4HxCeOM,657
|
|
456
465
|
rapidata/rapidata_client/selection/rapidata_selections.py,sha256=Azh0ntBZp9EQNL19imIItotQ8QW3B1gEs5YmuTvUn6U,1526
|
|
457
466
|
rapidata/rapidata_client/selection/shuffling_selection.py,sha256=FzOp7mnBLxNzM5at_-935wd77IHyWnFR1f8uqokiMOg,1201
|
|
467
|
+
rapidata/rapidata_client/selection/static_selection.py,sha256=POhVLjzHcUIuU_GCvRxMuCb27m7CkLxaQPwgf20Xo9o,681
|
|
458
468
|
rapidata/rapidata_client/selection/validation_selection.py,sha256=sedeIa8lpXVXKtFJA9IDeRvo9A1Ne4ZGcepaWDUGhCU,851
|
|
459
469
|
rapidata/rapidata_client/settings/__init__.py,sha256=DTEAT_YykwodZJXqKYOtWRwimLCA-Jxo0F0d-H6A3vM,458
|
|
460
470
|
rapidata/rapidata_client/settings/_rapidata_setting.py,sha256=MD5JhhogSLLrjFKjvL3JhMszOMCygyqLF-st0EwMSkw,352
|
|
@@ -473,7 +483,7 @@ rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MD
|
|
|
473
483
|
rapidata/rapidata_client/validation/rapids/box.py,sha256=t3_Kn6doKXdnJdtbwefXnYKPiTKHneJl9E2inkDSqL8,589
|
|
474
484
|
rapidata/rapidata_client/validation/rapids/rapids.py,sha256=uCKnoSn1RykNHgTFbrvCFlfzU8lF42cff-2I-Pd48w0,4620
|
|
475
485
|
rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=F00lPYBUx5fTPRw50iZuobtdbjFo6ZHevPMk101JdaY,14271
|
|
476
|
-
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=
|
|
486
|
+
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=Ecm17xf4SFsKdWAGNPdjecuAqsEJ27cHPdns7f8GXhs,26699
|
|
477
487
|
rapidata/rapidata_client/workflow/__init__.py,sha256=7nXcY91xkxjHudBc9H0fP35eBBtgwHGWTQKbb-M4h7Y,477
|
|
478
488
|
rapidata/rapidata_client/workflow/_base_workflow.py,sha256=XyIZFKS_RxAuwIHS848S3AyLEHqd07oTD_5jm2oUbsw,762
|
|
479
489
|
rapidata/rapidata_client/workflow/_classify_workflow.py,sha256=9bT54wxVJgxC-zLk6MVNbseFpzYrvFPjt7DHvxqYfnk,1736
|
|
@@ -486,11 +496,10 @@ rapidata/rapidata_client/workflow/_ranking_workflow.py,sha256=XBIifokhu9Kaqo0qSw
|
|
|
486
496
|
rapidata/rapidata_client/workflow/_select_words_workflow.py,sha256=juTW4TPnnSeBWP3K2QfO092t0u1W8I1ksY6aAtPZOi0,1225
|
|
487
497
|
rapidata/rapidata_client/workflow/_timestamp_workflow.py,sha256=tPi2zu1-SlE_ppbGbMz6MM_2LUSWxM-GA0CZRlB0qFo,1176
|
|
488
498
|
rapidata/service/__init__.py,sha256=s9bS1AJZaWIhLtJX_ZA40_CK39rAAkwdAmymTMbeWl4,68
|
|
489
|
-
rapidata/service/credential_manager.py,sha256=
|
|
499
|
+
rapidata/service/credential_manager.py,sha256=3x-Fb6tyqmgtpjI1MSOtXWW_SkzTK8Lo7I0SSL2YD7E,8602
|
|
490
500
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
491
|
-
rapidata/service/openapi_service.py,sha256=
|
|
492
|
-
rapidata/
|
|
493
|
-
rapidata-2.
|
|
494
|
-
rapidata-2.
|
|
495
|
-
rapidata-2.
|
|
496
|
-
rapidata-2.17.1.dist-info/RECORD,,
|
|
501
|
+
rapidata/service/openapi_service.py,sha256=ORFPfHlb41zOUP5nDjYWZwO-ZcqNF_Mw2r71RitFtS0,4042
|
|
502
|
+
rapidata-2.19.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
503
|
+
rapidata-2.19.0.dist-info/METADATA,sha256=5jh6Ya8uSIBWwvubjl4f_m5jjjiedvV5LRWOir2g8EA,1187
|
|
504
|
+
rapidata-2.19.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
505
|
+
rapidata-2.19.0.dist-info/RECORD,,
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
import logging
|
|
3
|
-
import threading
|
|
4
|
-
from datetime import datetime, timedelta
|
|
5
|
-
from typing import Optional, Callable
|
|
6
|
-
|
|
7
|
-
import requests
|
|
8
|
-
from pydantic import BaseModel
|
|
9
|
-
|
|
10
|
-
from rapidata.service.credential_manager import CredentialManager
|
|
11
|
-
|
|
12
|
-
logger = logging.getLogger(__name__)
|
|
13
|
-
|
|
14
|
-
class TokenInfo(BaseModel):
|
|
15
|
-
access_token: str
|
|
16
|
-
expires_in: int
|
|
17
|
-
issued_at: datetime
|
|
18
|
-
token_type: str = "Bearer"
|
|
19
|
-
|
|
20
|
-
@property
|
|
21
|
-
def auth_header(self):
|
|
22
|
-
return f"{self.token_type} {self.access_token}"
|
|
23
|
-
|
|
24
|
-
@property
|
|
25
|
-
def time_remaining(self):
|
|
26
|
-
remaining = (
|
|
27
|
-
(self.issued_at + timedelta(seconds=self.expires_in)) - datetime.now()
|
|
28
|
-
).total_seconds()
|
|
29
|
-
return max(0.0, remaining)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class TokenManager:
|
|
33
|
-
def __init__(
|
|
34
|
-
self,
|
|
35
|
-
client_id: str | None = None,
|
|
36
|
-
client_secret: str | None = None,
|
|
37
|
-
endpoint: str = "https://auth.rapidata.ai",
|
|
38
|
-
oauth_scope: str = "openid profile email",
|
|
39
|
-
cert_path: str | None = None,
|
|
40
|
-
refresh_threshold: float = 0.8,
|
|
41
|
-
max_sleep_time: float = 30,
|
|
42
|
-
max_token_lifetime: int = 60,
|
|
43
|
-
):
|
|
44
|
-
self._client_id = client_id
|
|
45
|
-
self._client_secret = client_secret
|
|
46
|
-
|
|
47
|
-
if not client_id or not client_secret:
|
|
48
|
-
credential_manager = CredentialManager(
|
|
49
|
-
endpoint=endpoint, cert_path=cert_path
|
|
50
|
-
)
|
|
51
|
-
credentials = credential_manager.get_client_credentials()
|
|
52
|
-
if not credentials:
|
|
53
|
-
raise ValueError("Failed to fetch client credentials")
|
|
54
|
-
self._client_id = credentials.client_id
|
|
55
|
-
self._client_secret = credentials.client_secret
|
|
56
|
-
|
|
57
|
-
self._endpoint = endpoint
|
|
58
|
-
self._oauth_scope = oauth_scope
|
|
59
|
-
self._cert_path = cert_path
|
|
60
|
-
self._refresh_threshold = refresh_threshold
|
|
61
|
-
self._max_sleep_time = max_sleep_time
|
|
62
|
-
self._max_token_lifetime = max_token_lifetime
|
|
63
|
-
|
|
64
|
-
self._token_lock = threading.Lock()
|
|
65
|
-
self._current_token: Optional[TokenInfo] = None
|
|
66
|
-
self._refresh_thread: Optional[threading.Thread] = None
|
|
67
|
-
self._should_stop = threading.Event()
|
|
68
|
-
|
|
69
|
-
def fetch_token(self):
|
|
70
|
-
try:
|
|
71
|
-
response = requests.post(
|
|
72
|
-
f"{self._endpoint}/connect/token",
|
|
73
|
-
data={
|
|
74
|
-
"grant_type": "client_credentials",
|
|
75
|
-
"client_id": self._client_id,
|
|
76
|
-
"client_secret": self._client_secret,
|
|
77
|
-
"scope": self._oauth_scope,
|
|
78
|
-
},
|
|
79
|
-
verify=self._cert_path,
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
if response.ok:
|
|
83
|
-
data = response.json()
|
|
84
|
-
return TokenInfo(
|
|
85
|
-
access_token=data["access_token"],
|
|
86
|
-
token_type=data["token_type"],
|
|
87
|
-
expires_in=min(self._max_token_lifetime, data["expires_in"]),
|
|
88
|
-
issued_at=datetime.now(),
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
else:
|
|
92
|
-
data = response.text
|
|
93
|
-
error_description = "An unknown error occurred"
|
|
94
|
-
if "error_description" in data:
|
|
95
|
-
error_description = (
|
|
96
|
-
data.split("error_description")[1].split("\n")[0].strip()
|
|
97
|
-
)
|
|
98
|
-
raise ValueError(f"Failed to fetch token: {error_description}")
|
|
99
|
-
except requests.RequestException as e:
|
|
100
|
-
raise ValueError(f"Failed to fetch token: {e}")
|
|
101
|
-
except json.JSONDecodeError as e:
|
|
102
|
-
raise ValueError(f"Failed to parse token response: {e}")
|
|
103
|
-
except KeyError as e:
|
|
104
|
-
raise ValueError(f"Failed to extract token from response: {e}")
|
|
105
|
-
|
|
106
|
-
def start_token_refresh(self, token_callback: Callable[[TokenInfo], None]) -> None:
|
|
107
|
-
if self._refresh_thread and self._refresh_thread.is_alive():
|
|
108
|
-
logger.error("Token refresh thread is already running")
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
def refresh_loop():
|
|
112
|
-
while not self._should_stop.is_set():
|
|
113
|
-
try:
|
|
114
|
-
with self._token_lock:
|
|
115
|
-
if self._should_refresh_token(self._current_token):
|
|
116
|
-
logger.debug("Refreshing token")
|
|
117
|
-
self._current_token = self.fetch_token()
|
|
118
|
-
token_callback(self._current_token)
|
|
119
|
-
|
|
120
|
-
if self._current_token:
|
|
121
|
-
time_until_refresh_threshold = (
|
|
122
|
-
self._current_token.time_remaining
|
|
123
|
-
- (
|
|
124
|
-
self._current_token.expires_in
|
|
125
|
-
* (1 - self._refresh_threshold)
|
|
126
|
-
)
|
|
127
|
-
)
|
|
128
|
-
logger.debug("Time until refresh threshold: %s", time_until_refresh_threshold)
|
|
129
|
-
sleep_time = min(
|
|
130
|
-
self._max_sleep_time, time_until_refresh_threshold
|
|
131
|
-
)
|
|
132
|
-
logger.debug(
|
|
133
|
-
f"Sleeping for {sleep_time} until checking the token again"
|
|
134
|
-
)
|
|
135
|
-
self._should_stop.wait(timeout=max(1.0, sleep_time))
|
|
136
|
-
else:
|
|
137
|
-
self._should_stop.wait(timeout=self._max_sleep_time)
|
|
138
|
-
except Exception as e:
|
|
139
|
-
logger.error("Failed to refresh token: %s", e)
|
|
140
|
-
self._should_stop.wait(timeout=5)
|
|
141
|
-
|
|
142
|
-
self._should_stop.clear()
|
|
143
|
-
self._refresh_thread = threading.Thread(target=refresh_loop, daemon=True)
|
|
144
|
-
self._refresh_thread.start()
|
|
145
|
-
|
|
146
|
-
def stop_token_refresh(self):
|
|
147
|
-
self._should_stop.set()
|
|
148
|
-
if self._refresh_thread:
|
|
149
|
-
self._refresh_thread.join(timeout=1)
|
|
150
|
-
self._refresh_thread = None
|
|
151
|
-
|
|
152
|
-
def get_current_token(self) -> Optional[TokenInfo]:
|
|
153
|
-
with self._token_lock:
|
|
154
|
-
return self._current_token
|
|
155
|
-
|
|
156
|
-
def _should_refresh_token(self, token: TokenInfo | None) -> bool:
|
|
157
|
-
if not token:
|
|
158
|
-
return True
|
|
159
|
-
|
|
160
|
-
limit = token.expires_in * (1 - self._refresh_threshold)
|
|
161
|
-
|
|
162
|
-
logger.debug(
|
|
163
|
-
"The token was issued at %s, it expires in %s. It has %s seconds remaining and we refresh the token when it has %s seconds remaining",
|
|
164
|
-
token.issued_at,
|
|
165
|
-
token.expires_in,
|
|
166
|
-
token.time_remaining,
|
|
167
|
-
limit,
|
|
168
|
-
)
|
|
169
|
-
return token.time_remaining < limit
|
|
170
|
-
|
|
171
|
-
def __enter__(self):
|
|
172
|
-
return self
|
|
173
|
-
|
|
174
|
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
175
|
-
self.stop_token_refresh()
|
|
176
|
-
return False
|
|
File without changes
|
|
File without changes
|