rapidata 2.31.1__py3-none-any.whl → 2.31.2__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 +2 -0
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +26 -297
- rapidata/api_client/api/participant_api.py +1404 -0
- rapidata/api_client/models/__init__.py +1 -0
- rapidata/api_client/models/create_sample_model.py +87 -0
- rapidata/api_client_README.md +6 -1
- rapidata/rapidata_client/validation/rapids/rapids.py +1 -1
- {rapidata-2.31.1.dist-info → rapidata-2.31.2.dist-info}/METADATA +1 -1
- {rapidata-2.31.1.dist-info → rapidata-2.31.2.dist-info}/RECORD +13 -11
- {rapidata-2.31.1.dist-info → rapidata-2.31.2.dist-info}/LICENSE +0 -0
- {rapidata-2.31.1.dist-info → rapidata-2.31.2.dist-info}/WHEEL +0 -0
|
@@ -109,6 +109,7 @@ from rapidata.api_client.models.create_order_model_referee import CreateOrderMod
|
|
|
109
109
|
from rapidata.api_client.models.create_order_model_workflow import CreateOrderModelWorkflow
|
|
110
110
|
from rapidata.api_client.models.create_order_result import CreateOrderResult
|
|
111
111
|
from rapidata.api_client.models.create_rapid_result import CreateRapidResult
|
|
112
|
+
from rapidata.api_client.models.create_sample_model import CreateSampleModel
|
|
112
113
|
from rapidata.api_client.models.create_simple_pipeline_model import CreateSimplePipelineModel
|
|
113
114
|
from rapidata.api_client.models.create_simple_pipeline_model_artifacts_inner import CreateSimplePipelineModelArtifactsInner
|
|
114
115
|
from rapidata.api_client.models.create_simple_pipeline_model_pipeline_steps_inner import CreateSimplePipelineModelPipelineStepsInner
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CreateSampleModel(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
The model used to create a sample to a participant.
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
identifier: StrictStr = Field(description="The identifier used to correlate samples of different participants.")
|
|
30
|
+
__properties: ClassVar[List[str]] = ["identifier"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of CreateSampleModel from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of CreateSampleModel from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"identifier": obj.get("identifier")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
rapidata/api_client_README.md
CHANGED
|
@@ -76,7 +76,6 @@ Class | Method | HTTP request | Description
|
|
|
76
76
|
*BenchmarkApi* | [**benchmark_benchmark_id_get**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_get) | **GET** /benchmark/{benchmarkId} | Returns a single benchmark by its ID.
|
|
77
77
|
*BenchmarkApi* | [**benchmark_benchmark_id_name_put**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_name_put) | **PUT** /benchmark/{benchmarkId}/name | Updates the name of a benchmark.
|
|
78
78
|
*BenchmarkApi* | [**benchmark_benchmark_id_participant_participant_id_delete**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_participant_participant_id_delete) | **DELETE** /benchmark/{benchmarkId}/participant/{participantId} | Deletes a participant on a benchmark.
|
|
79
|
-
*BenchmarkApi* | [**benchmark_benchmark_id_participant_participant_id_get**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_participant_participant_id_get) | **GET** /benchmark/{benchmarkId}/participant/{participantId} | Gets a participant by it's Id.
|
|
80
79
|
*BenchmarkApi* | [**benchmark_benchmark_id_participants_get**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_participants_get) | **GET** /benchmark/{benchmarkId}/participants | Query all participants within a benchmark
|
|
81
80
|
*BenchmarkApi* | [**benchmark_benchmark_id_participants_participant_id_disable_post**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_participants_participant_id_disable_post) | **POST** /benchmark/{benchmarkId}/participants/{participantId}/disable | This endpoint disables a participant in a benchmark. this means that the participant will no longer actively be matched up against other participants and not collect further results. It will still be visible in the leaderboard.
|
|
82
81
|
*BenchmarkApi* | [**benchmark_benchmark_id_participants_participant_id_submit_post**](rapidata/api_client/docs/BenchmarkApi.md#benchmark_benchmark_id_participants_participant_id_submit_post) | **POST** /benchmark/{benchmarkId}/participants/{participantId}/submit | Submits a participant to a benchmark.
|
|
@@ -163,6 +162,11 @@ Class | Method | HTTP request | Description
|
|
|
163
162
|
*OrderApi* | [**order_unsupported_post**](rapidata/api_client/docs/OrderApi.md#order_unsupported_post) | **POST** /order/unsupported | Notifies the admins that a user wants to create an order with an unsupported label type or data type.
|
|
164
163
|
*OrderApi* | [**orders_get**](rapidata/api_client/docs/OrderApi.md#orders_get) | **GET** /orders | Queries orders based on a filter, page, and sort criteria.
|
|
165
164
|
*OrderApi* | [**orders_public_get**](rapidata/api_client/docs/OrderApi.md#orders_public_get) | **GET** /orders/public | Retrieves orders that are public and can be cloned by any user.
|
|
165
|
+
*ParticipantApi* | [**participant_participant_id_delete**](rapidata/api_client/docs/ParticipantApi.md#participant_participant_id_delete) | **DELETE** /participant/{participantId} | Deletes a participant on a benchmark.
|
|
166
|
+
*ParticipantApi* | [**participant_participant_id_get**](rapidata/api_client/docs/ParticipantApi.md#participant_participant_id_get) | **GET** /participant/{participantId} | Gets a participant by it's Id.
|
|
167
|
+
*ParticipantApi* | [**participant_participant_id_sample_post**](rapidata/api_client/docs/ParticipantApi.md#participant_participant_id_sample_post) | **POST** /participant/{participantId}/sample | Adds a sample to a participant.
|
|
168
|
+
*ParticipantApi* | [**participant_sample_sample_id_delete**](rapidata/api_client/docs/ParticipantApi.md#participant_sample_sample_id_delete) | **DELETE** /participant-sample/{sampleId} | Deletes a sample.
|
|
169
|
+
*ParticipantApi* | [**participants_participant_id_submit_post**](rapidata/api_client/docs/ParticipantApi.md#participants_participant_id_submit_post) | **POST** /participants/{participantId}/submit | Submits a participant to a benchmark.
|
|
166
170
|
*PipelineApi* | [**pipeline_id_workflow_config_artifact_id_put**](rapidata/api_client/docs/PipelineApi.md#pipeline_id_workflow_config_artifact_id_put) | **PUT** /pipeline/{id}/workflow-config/{artifactId} | Updates the workflow configuration for a pipeline.
|
|
167
171
|
*PipelineApi* | [**pipeline_id_workflow_config_put**](rapidata/api_client/docs/PipelineApi.md#pipeline_id_workflow_config_put) | **PUT** /pipeline/{id}/workflow-config | Updates the workflow configuration for a pipeline.
|
|
168
172
|
*PipelineApi* | [**pipeline_pipeline_id_campaign_artifact_id_put**](rapidata/api_client/docs/PipelineApi.md#pipeline_pipeline_id_campaign_artifact_id_put) | **PUT** /pipeline/{pipelineId}/campaign/{artifactId} | Updates a specific campaign for a pipeline.
|
|
@@ -297,6 +301,7 @@ Class | Method | HTTP request | Description
|
|
|
297
301
|
- [CreateOrderModelWorkflow](rapidata/api_client/docs/CreateOrderModelWorkflow.md)
|
|
298
302
|
- [CreateOrderResult](rapidata/api_client/docs/CreateOrderResult.md)
|
|
299
303
|
- [CreateRapidResult](rapidata/api_client/docs/CreateRapidResult.md)
|
|
304
|
+
- [CreateSampleModel](rapidata/api_client/docs/CreateSampleModel.md)
|
|
300
305
|
- [CreateSimplePipelineModel](rapidata/api_client/docs/CreateSimplePipelineModel.md)
|
|
301
306
|
- [CreateSimplePipelineModelArtifactsInner](rapidata/api_client/docs/CreateSimplePipelineModelArtifactsInner.md)
|
|
302
307
|
- [CreateSimplePipelineModelPipelineStepsInner](rapidata/api_client/docs/CreateSimplePipelineModelPipelineStepsInner.md)
|
|
@@ -44,7 +44,7 @@ class Rapid():
|
|
|
44
44
|
openapi_service.validation_api.validation_set_validation_set_id_rapid_post(
|
|
45
45
|
validation_set_id=validationSetId,
|
|
46
46
|
model=model,
|
|
47
|
-
files=[asset.to_file() for asset in files],
|
|
47
|
+
files=[asset.to_file() for asset in files if asset.is_local()],
|
|
48
48
|
urls=[asset.path for asset in files if not asset.is_local()]
|
|
49
49
|
)
|
|
50
50
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
rapidata/__init__.py,sha256=
|
|
2
|
-
rapidata/api_client/__init__.py,sha256=
|
|
3
|
-
rapidata/api_client/api/__init__.py,sha256=
|
|
4
|
-
rapidata/api_client/api/benchmark_api.py,sha256=
|
|
1
|
+
rapidata/__init__.py,sha256=9zyk6BW1q7xJJLiOcamEdO068ieM1eeWdrwsNKnABBA,865
|
|
2
|
+
rapidata/api_client/__init__.py,sha256=bnGUWzPGaDhjFiRafYK3n8XNtHV_hr0C6yKNKmExsaE,33882
|
|
3
|
+
rapidata/api_client/api/__init__.py,sha256=qjLeeJSnuPF_ar_nLknjnOqStBQnoCiz-O_rfZUBZrE,1489
|
|
4
|
+
rapidata/api_client/api/benchmark_api.py,sha256=QB2smhWy12mZakh1aGlUH5d5DA0MbEJGdJy8mQToJnU,130931
|
|
5
5
|
rapidata/api_client/api/campaign_api.py,sha256=406gNDALFb0sJhfx727ZM5_0GDX4iB0w5ym2dExLm4g,49894
|
|
6
6
|
rapidata/api_client/api/client_api.py,sha256=KKgUrEKfqmEAqUCRqcYKRb6G3GLwD6R-JSUsShmo7r8,54313
|
|
7
7
|
rapidata/api_client/api/coco_api.py,sha256=d1ypa-JfIoPFEJwn3l-INZM5bS2wB1ifuJuvYXLSRC4,24165
|
|
@@ -15,6 +15,7 @@ rapidata/api_client/api/identity_api.py,sha256=LmK6cTXssNjCa1BteOMc8P4FsyRiHQ_Kr
|
|
|
15
15
|
rapidata/api_client/api/leaderboard_api.py,sha256=7h-nUh8EhMo84slSRE2EErZr9rRxiN6P0TBEHFKSIb8,177224
|
|
16
16
|
rapidata/api_client/api/newsletter_api.py,sha256=3NU6HO5Gtm-RH-nx5hcp2CCE4IZmWHwTfCLMMz-Xpq4,22655
|
|
17
17
|
rapidata/api_client/api/order_api.py,sha256=BfMsOGSovNizk1prukw18wH1-e0LrmmsCJy-vQhZdq4,210747
|
|
18
|
+
rapidata/api_client/api/participant_api.py,sha256=YEwqQNwkpJlKMJ_tVf6FsUfRdq2URUugoJsO5w2x8Lg,54944
|
|
18
19
|
rapidata/api_client/api/pipeline_api.py,sha256=s1_0GG3Rr-_yFzZ0TcBAgNGVrbQX_cjx2tnv3-1CmZw,96625
|
|
19
20
|
rapidata/api_client/api/rapid_api.py,sha256=2omzmCbZxfseGTwEMFGESrkSH-FlkP0JmqIWJqgm8fM,97187
|
|
20
21
|
rapidata/api_client/api/rapidata_identity_api_api.py,sha256=-kgoDuLdh-R4MQ7JPi3kQ0WDFKbmI0MkCjxwHXBmksA,9824
|
|
@@ -27,7 +28,7 @@ rapidata/api_client/api_client.py,sha256=EDhxAOUc5JFWvFsF1zc726Q7GoEFkuB8uor5SlG
|
|
|
27
28
|
rapidata/api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
28
29
|
rapidata/api_client/configuration.py,sha256=g472vHVPLBotq8EkfSXP4sbp7xnn-3sb8O8BBlRWK1I,15931
|
|
29
30
|
rapidata/api_client/exceptions.py,sha256=eLLd1fxM0Ygf3IIG6aNx9hdy79drst5Cem0UjI_NamM,5978
|
|
30
|
-
rapidata/api_client/models/__init__.py,sha256=
|
|
31
|
+
rapidata/api_client/models/__init__.py,sha256=2aRs3QoYG90e4vTVqsQI1R5yIKRS3LhG8vAhjLPrwJk,31852
|
|
31
32
|
rapidata/api_client/models/ab_test_selection.py,sha256=xQcE1BgKSnkTcmIuroeVOAQcAhGkHLlMP9XjakMFgDc,4327
|
|
32
33
|
rapidata/api_client/models/ab_test_selection_a_inner.py,sha256=VsCi27NBGxAtupB_sQZCzUEsTNNgSGV_Mo-Fi0UY1Jw,11657
|
|
33
34
|
rapidata/api_client/models/add_campaign_artifact_result.py,sha256=4IvFVS-tLlL6eHsWp-IZ_ul5T30-h3YEwd2B5ioBbgY,2582
|
|
@@ -154,6 +155,7 @@ rapidata/api_client/models/create_order_model_user_filters_inner.py,sha256=o_VLp
|
|
|
154
155
|
rapidata/api_client/models/create_order_model_workflow.py,sha256=cy7bD2kWvLkCgFdrViAG63xtYDIdVOn0dD74GRxni_A,6638
|
|
155
156
|
rapidata/api_client/models/create_order_result.py,sha256=Mo6_p9rPw9h1BOOviBoGeEDHFAaz1Tu7syEzviRP7vc,3390
|
|
156
157
|
rapidata/api_client/models/create_rapid_result.py,sha256=ECREjyzsTg6leWTF19E-QtqmyaTIeIZzpp_sO9iA4kY,2535
|
|
158
|
+
rapidata/api_client/models/create_sample_model.py,sha256=Xg4I0iqxbGqViXmyz0MVvFqqf7HLfgbIAoCrhzOasz8,2646
|
|
157
159
|
rapidata/api_client/models/create_simple_pipeline_model.py,sha256=loLhevw-sZap22HDFGDF1aphPBznt1M-wBY31haihNY,4729
|
|
158
160
|
rapidata/api_client/models/create_simple_pipeline_model_artifacts_inner.py,sha256=EvOz0EpU3RIfZ1rw6EGOkGiFzGi1Zm0YmeDKNQ7WWS8,5027
|
|
159
161
|
rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py,sha256=6N8-Xsybow21NhHKVzKv-QDJR4rPZYkAzgorIVyTod4,8837
|
|
@@ -524,7 +526,7 @@ rapidata/api_client/models/workflow_split_model_filter_configs_inner.py,sha256=1
|
|
|
524
526
|
rapidata/api_client/models/workflow_state.py,sha256=5LAK1se76RCoozeVB6oxMPb8p_5bhLZJqn7q5fFQWis,850
|
|
525
527
|
rapidata/api_client/models/zip_entry_file_wrapper.py,sha256=06CoNJD3x511K3rnSmkrwwhc9GbQxwxF-c0ldOyJbAs,4240
|
|
526
528
|
rapidata/api_client/rest.py,sha256=rtIMcgINZOUaDFaJIinJkXRSddNJmXvMRMfgO2Ezk2o,10835
|
|
527
|
-
rapidata/api_client_README.md,sha256=
|
|
529
|
+
rapidata/api_client_README.md,sha256=gr0R771p4eGlwrWMcTdFATDBWpSpvkTp7R2lbu2Fl08,60177
|
|
528
530
|
rapidata/rapidata_client/__init__.py,sha256=MLl41ZPDYezE9ookAjHS75wFqfCTOKq-U01GJbHFjrA,1133
|
|
529
531
|
rapidata/rapidata_client/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
530
532
|
rapidata/rapidata_client/api/rapidata_exception.py,sha256=BIdmHRrJUGW-Mqhp1H_suemZaR6w9TgjWq-ZW5iUPdQ,3878
|
|
@@ -613,7 +615,7 @@ rapidata/rapidata_client/validation/__init__.py,sha256=s5wHVtcJkncXSFuL9I0zNwccN
|
|
|
613
615
|
rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=h6aicVyrBePfzS5-cPk_hPgmePUqCB3yAbGB_tTXYg0,1814
|
|
614
616
|
rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MDakzx4I8Y0laj7siw9teeXj5R0,21
|
|
615
617
|
rapidata/rapidata_client/validation/rapids/box.py,sha256=t3_Kn6doKXdnJdtbwefXnYKPiTKHneJl9E2inkDSqL8,589
|
|
616
|
-
rapidata/rapidata_client/validation/rapids/rapids.py,sha256=
|
|
618
|
+
rapidata/rapidata_client/validation/rapids/rapids.py,sha256=WH2EQVhWShHIfXLbaV9-hiVN-ENyXzBZYcQIxdq-RjA,3847
|
|
617
619
|
rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=O-AWNQ84zNd8w8JEfCTnWDGAuiDz-Cy17MV1nt7xi2I,14338
|
|
618
620
|
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=7eLh9REoOLRvHR8Ao0oQkPU8REPdLYRP88WXsxX9-fU,30576
|
|
619
621
|
rapidata/rapidata_client/workflow/__init__.py,sha256=7nXcY91xkxjHudBc9H0fP35eBBtgwHGWTQKbb-M4h7Y,477
|
|
@@ -631,7 +633,7 @@ rapidata/service/__init__.py,sha256=s9bS1AJZaWIhLtJX_ZA40_CK39rAAkwdAmymTMbeWl4,
|
|
|
631
633
|
rapidata/service/credential_manager.py,sha256=pUEEtp6VrFWYhfUUtyqmS0AlRqe2Y0kFkY6o22IT4KM,8682
|
|
632
634
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
633
635
|
rapidata/service/openapi_service.py,sha256=xoGBACpUhG0H-tadSBa8A91LHyfI7n-FCT2JlrERqco,5221
|
|
634
|
-
rapidata-2.31.
|
|
635
|
-
rapidata-2.31.
|
|
636
|
-
rapidata-2.31.
|
|
637
|
-
rapidata-2.31.
|
|
636
|
+
rapidata-2.31.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
637
|
+
rapidata-2.31.2.dist-info/METADATA,sha256=vwntCIsDSw71O6RSok27uOXpRGiueh8M210PoaOT_Gw,1264
|
|
638
|
+
rapidata-2.31.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
639
|
+
rapidata-2.31.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|