rapidata 2.32.0__py3-none-any.whl → 2.33.1__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 +1 -1
- rapidata/api_client/__init__.py +6 -0
- rapidata/api_client/api/benchmark_api.py +194 -200
- rapidata/api_client/api/order_api.py +68 -6
- rapidata/api_client/api/participant_api.py +945 -130
- rapidata/api_client/api/validation_set_api.py +1106 -253
- rapidata/api_client/models/__init__.py +6 -0
- rapidata/api_client/models/benchmark_query_result.py +4 -2
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +4 -2
- rapidata/api_client/models/sample_by_participant.py +120 -0
- rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
- rapidata/api_client/models/submit_order_model.py +87 -0
- rapidata/api_client/models/submit_prompt_model.py +9 -2
- rapidata/api_client/models/update_participant_name_model.py +87 -0
- rapidata/api_client/models/update_should_alert_model.py +87 -0
- rapidata/api_client_README.md +13 -1
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +35 -1
- rapidata/rapidata_client/order/_rapidata_order_builder.py +20 -7
- rapidata/rapidata_client/order/rapidata_order.py +4 -2
- rapidata/rapidata_client/order/rapidata_order_manager.py +14 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +17 -1
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/METADATA +1 -1
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/RECORD +26 -20
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/LICENSE +0 -0
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/WHEEL +0 -0
|
@@ -29,7 +29,9 @@ from rapidata.api_client.models.create_unsupported_order_model import CreateUnsu
|
|
|
29
29
|
from rapidata.api_client.models.get_order_by_id_result import GetOrderByIdResult
|
|
30
30
|
from rapidata.api_client.models.get_public_orders_result import GetPublicOrdersResult
|
|
31
31
|
from rapidata.api_client.models.order_model_paged_result import OrderModelPagedResult
|
|
32
|
+
from rapidata.api_client.models.preview_order_model import PreviewOrderModel
|
|
32
33
|
from rapidata.api_client.models.query_model import QueryModel
|
|
34
|
+
from rapidata.api_client.models.submit_order_model import SubmitOrderModel
|
|
33
35
|
from rapidata.api_client.models.unlock_order_result import UnlockOrderResult
|
|
34
36
|
from rapidata.api_client.models.update_order_name_model import UpdateOrderNameModel
|
|
35
37
|
|
|
@@ -2459,7 +2461,8 @@ class OrderApi:
|
|
|
2459
2461
|
@validate_call
|
|
2460
2462
|
def order_order_id_preview_post(
|
|
2461
2463
|
self,
|
|
2462
|
-
order_id: StrictStr,
|
|
2464
|
+
order_id: Annotated[StrictStr, Field(description="The id of the order to submit")],
|
|
2465
|
+
preview_order_model: Annotated[Optional[PreviewOrderModel], Field(description="The model containing additional information for the preview.")] = None,
|
|
2463
2466
|
_request_timeout: Union[
|
|
2464
2467
|
None,
|
|
2465
2468
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2476,8 +2479,10 @@ class OrderApi:
|
|
|
2476
2479
|
"""Puts the order into preview mode, where one can inspect what our labelers receive.
|
|
2477
2480
|
|
|
2478
2481
|
|
|
2479
|
-
:param order_id:
|
|
2482
|
+
:param order_id: The id of the order to submit (required)
|
|
2480
2483
|
:type order_id: str
|
|
2484
|
+
:param preview_order_model: The model containing additional information for the preview.
|
|
2485
|
+
:type preview_order_model: PreviewOrderModel
|
|
2481
2486
|
:param _request_timeout: timeout setting for this request. If one
|
|
2482
2487
|
number provided, it will be total request
|
|
2483
2488
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2502,6 +2507,7 @@ class OrderApi:
|
|
|
2502
2507
|
|
|
2503
2508
|
_param = self._order_order_id_preview_post_serialize(
|
|
2504
2509
|
order_id=order_id,
|
|
2510
|
+
preview_order_model=preview_order_model,
|
|
2505
2511
|
_request_auth=_request_auth,
|
|
2506
2512
|
_content_type=_content_type,
|
|
2507
2513
|
_headers=_headers,
|
|
@@ -2525,7 +2531,8 @@ class OrderApi:
|
|
|
2525
2531
|
@validate_call
|
|
2526
2532
|
def order_order_id_preview_post_with_http_info(
|
|
2527
2533
|
self,
|
|
2528
|
-
order_id: StrictStr,
|
|
2534
|
+
order_id: Annotated[StrictStr, Field(description="The id of the order to submit")],
|
|
2535
|
+
preview_order_model: Annotated[Optional[PreviewOrderModel], Field(description="The model containing additional information for the preview.")] = None,
|
|
2529
2536
|
_request_timeout: Union[
|
|
2530
2537
|
None,
|
|
2531
2538
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2542,8 +2549,10 @@ class OrderApi:
|
|
|
2542
2549
|
"""Puts the order into preview mode, where one can inspect what our labelers receive.
|
|
2543
2550
|
|
|
2544
2551
|
|
|
2545
|
-
:param order_id:
|
|
2552
|
+
:param order_id: The id of the order to submit (required)
|
|
2546
2553
|
:type order_id: str
|
|
2554
|
+
:param preview_order_model: The model containing additional information for the preview.
|
|
2555
|
+
:type preview_order_model: PreviewOrderModel
|
|
2547
2556
|
:param _request_timeout: timeout setting for this request. If one
|
|
2548
2557
|
number provided, it will be total request
|
|
2549
2558
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2568,6 +2577,7 @@ class OrderApi:
|
|
|
2568
2577
|
|
|
2569
2578
|
_param = self._order_order_id_preview_post_serialize(
|
|
2570
2579
|
order_id=order_id,
|
|
2580
|
+
preview_order_model=preview_order_model,
|
|
2571
2581
|
_request_auth=_request_auth,
|
|
2572
2582
|
_content_type=_content_type,
|
|
2573
2583
|
_headers=_headers,
|
|
@@ -2591,7 +2601,8 @@ class OrderApi:
|
|
|
2591
2601
|
@validate_call
|
|
2592
2602
|
def order_order_id_preview_post_without_preload_content(
|
|
2593
2603
|
self,
|
|
2594
|
-
order_id: StrictStr,
|
|
2604
|
+
order_id: Annotated[StrictStr, Field(description="The id of the order to submit")],
|
|
2605
|
+
preview_order_model: Annotated[Optional[PreviewOrderModel], Field(description="The model containing additional information for the preview.")] = None,
|
|
2595
2606
|
_request_timeout: Union[
|
|
2596
2607
|
None,
|
|
2597
2608
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2608,8 +2619,10 @@ class OrderApi:
|
|
|
2608
2619
|
"""Puts the order into preview mode, where one can inspect what our labelers receive.
|
|
2609
2620
|
|
|
2610
2621
|
|
|
2611
|
-
:param order_id:
|
|
2622
|
+
:param order_id: The id of the order to submit (required)
|
|
2612
2623
|
:type order_id: str
|
|
2624
|
+
:param preview_order_model: The model containing additional information for the preview.
|
|
2625
|
+
:type preview_order_model: PreviewOrderModel
|
|
2613
2626
|
:param _request_timeout: timeout setting for this request. If one
|
|
2614
2627
|
number provided, it will be total request
|
|
2615
2628
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2634,6 +2647,7 @@ class OrderApi:
|
|
|
2634
2647
|
|
|
2635
2648
|
_param = self._order_order_id_preview_post_serialize(
|
|
2636
2649
|
order_id=order_id,
|
|
2650
|
+
preview_order_model=preview_order_model,
|
|
2637
2651
|
_request_auth=_request_auth,
|
|
2638
2652
|
_content_type=_content_type,
|
|
2639
2653
|
_headers=_headers,
|
|
@@ -2653,6 +2667,7 @@ class OrderApi:
|
|
|
2653
2667
|
def _order_order_id_preview_post_serialize(
|
|
2654
2668
|
self,
|
|
2655
2669
|
order_id,
|
|
2670
|
+
preview_order_model,
|
|
2656
2671
|
_request_auth,
|
|
2657
2672
|
_content_type,
|
|
2658
2673
|
_headers,
|
|
@@ -2680,9 +2695,26 @@ class OrderApi:
|
|
|
2680
2695
|
# process the header parameters
|
|
2681
2696
|
# process the form parameters
|
|
2682
2697
|
# process the body parameter
|
|
2698
|
+
if preview_order_model is not None:
|
|
2699
|
+
_body_params = preview_order_model
|
|
2683
2700
|
|
|
2684
2701
|
|
|
2685
2702
|
|
|
2703
|
+
# set the HTTP header `Content-Type`
|
|
2704
|
+
if _content_type:
|
|
2705
|
+
_header_params['Content-Type'] = _content_type
|
|
2706
|
+
else:
|
|
2707
|
+
_default_content_type = (
|
|
2708
|
+
self.api_client.select_header_content_type(
|
|
2709
|
+
[
|
|
2710
|
+
'application/json',
|
|
2711
|
+
'text/json',
|
|
2712
|
+
'application/*+json'
|
|
2713
|
+
]
|
|
2714
|
+
)
|
|
2715
|
+
)
|
|
2716
|
+
if _default_content_type is not None:
|
|
2717
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2686
2718
|
|
|
2687
2719
|
# authentication setting
|
|
2688
2720
|
_auth_settings: List[str] = [
|
|
@@ -3746,6 +3778,7 @@ class OrderApi:
|
|
|
3746
3778
|
def order_order_id_submit_post(
|
|
3747
3779
|
self,
|
|
3748
3780
|
order_id: Annotated[StrictStr, Field(description="The id of the order to submit")],
|
|
3781
|
+
submit_order_model: Annotated[Optional[SubmitOrderModel], Field(description="The model containing additional information for the submission.")] = None,
|
|
3749
3782
|
_request_timeout: Union[
|
|
3750
3783
|
None,
|
|
3751
3784
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3765,6 +3798,8 @@ class OrderApi:
|
|
|
3765
3798
|
|
|
3766
3799
|
:param order_id: The id of the order to submit (required)
|
|
3767
3800
|
:type order_id: str
|
|
3801
|
+
:param submit_order_model: The model containing additional information for the submission.
|
|
3802
|
+
:type submit_order_model: SubmitOrderModel
|
|
3768
3803
|
:param _request_timeout: timeout setting for this request. If one
|
|
3769
3804
|
number provided, it will be total request
|
|
3770
3805
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3789,6 +3824,7 @@ class OrderApi:
|
|
|
3789
3824
|
|
|
3790
3825
|
_param = self._order_order_id_submit_post_serialize(
|
|
3791
3826
|
order_id=order_id,
|
|
3827
|
+
submit_order_model=submit_order_model,
|
|
3792
3828
|
_request_auth=_request_auth,
|
|
3793
3829
|
_content_type=_content_type,
|
|
3794
3830
|
_headers=_headers,
|
|
@@ -3813,6 +3849,7 @@ class OrderApi:
|
|
|
3813
3849
|
def order_order_id_submit_post_with_http_info(
|
|
3814
3850
|
self,
|
|
3815
3851
|
order_id: Annotated[StrictStr, Field(description="The id of the order to submit")],
|
|
3852
|
+
submit_order_model: Annotated[Optional[SubmitOrderModel], Field(description="The model containing additional information for the submission.")] = None,
|
|
3816
3853
|
_request_timeout: Union[
|
|
3817
3854
|
None,
|
|
3818
3855
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3832,6 +3869,8 @@ class OrderApi:
|
|
|
3832
3869
|
|
|
3833
3870
|
:param order_id: The id of the order to submit (required)
|
|
3834
3871
|
:type order_id: str
|
|
3872
|
+
:param submit_order_model: The model containing additional information for the submission.
|
|
3873
|
+
:type submit_order_model: SubmitOrderModel
|
|
3835
3874
|
:param _request_timeout: timeout setting for this request. If one
|
|
3836
3875
|
number provided, it will be total request
|
|
3837
3876
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3856,6 +3895,7 @@ class OrderApi:
|
|
|
3856
3895
|
|
|
3857
3896
|
_param = self._order_order_id_submit_post_serialize(
|
|
3858
3897
|
order_id=order_id,
|
|
3898
|
+
submit_order_model=submit_order_model,
|
|
3859
3899
|
_request_auth=_request_auth,
|
|
3860
3900
|
_content_type=_content_type,
|
|
3861
3901
|
_headers=_headers,
|
|
@@ -3880,6 +3920,7 @@ class OrderApi:
|
|
|
3880
3920
|
def order_order_id_submit_post_without_preload_content(
|
|
3881
3921
|
self,
|
|
3882
3922
|
order_id: Annotated[StrictStr, Field(description="The id of the order to submit")],
|
|
3923
|
+
submit_order_model: Annotated[Optional[SubmitOrderModel], Field(description="The model containing additional information for the submission.")] = None,
|
|
3883
3924
|
_request_timeout: Union[
|
|
3884
3925
|
None,
|
|
3885
3926
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3899,6 +3940,8 @@ class OrderApi:
|
|
|
3899
3940
|
|
|
3900
3941
|
:param order_id: The id of the order to submit (required)
|
|
3901
3942
|
:type order_id: str
|
|
3943
|
+
:param submit_order_model: The model containing additional information for the submission.
|
|
3944
|
+
:type submit_order_model: SubmitOrderModel
|
|
3902
3945
|
:param _request_timeout: timeout setting for this request. If one
|
|
3903
3946
|
number provided, it will be total request
|
|
3904
3947
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3923,6 +3966,7 @@ class OrderApi:
|
|
|
3923
3966
|
|
|
3924
3967
|
_param = self._order_order_id_submit_post_serialize(
|
|
3925
3968
|
order_id=order_id,
|
|
3969
|
+
submit_order_model=submit_order_model,
|
|
3926
3970
|
_request_auth=_request_auth,
|
|
3927
3971
|
_content_type=_content_type,
|
|
3928
3972
|
_headers=_headers,
|
|
@@ -3942,6 +3986,7 @@ class OrderApi:
|
|
|
3942
3986
|
def _order_order_id_submit_post_serialize(
|
|
3943
3987
|
self,
|
|
3944
3988
|
order_id,
|
|
3989
|
+
submit_order_model,
|
|
3945
3990
|
_request_auth,
|
|
3946
3991
|
_content_type,
|
|
3947
3992
|
_headers,
|
|
@@ -3969,9 +4014,26 @@ class OrderApi:
|
|
|
3969
4014
|
# process the header parameters
|
|
3970
4015
|
# process the form parameters
|
|
3971
4016
|
# process the body parameter
|
|
4017
|
+
if submit_order_model is not None:
|
|
4018
|
+
_body_params = submit_order_model
|
|
3972
4019
|
|
|
3973
4020
|
|
|
3974
4021
|
|
|
4022
|
+
# set the HTTP header `Content-Type`
|
|
4023
|
+
if _content_type:
|
|
4024
|
+
_header_params['Content-Type'] = _content_type
|
|
4025
|
+
else:
|
|
4026
|
+
_default_content_type = (
|
|
4027
|
+
self.api_client.select_header_content_type(
|
|
4028
|
+
[
|
|
4029
|
+
'application/json',
|
|
4030
|
+
'text/json',
|
|
4031
|
+
'application/*+json'
|
|
4032
|
+
]
|
|
4033
|
+
)
|
|
4034
|
+
)
|
|
4035
|
+
if _default_content_type is not None:
|
|
4036
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3975
4037
|
|
|
3976
4038
|
# authentication setting
|
|
3977
4039
|
_auth_settings: List[str] = [
|