rapidata 0.1.3__py3-none-any.whl → 0.1.6__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.
- openapi/openapi-client/openapi_client/__init__.py +215 -0
- openapi/openapi-client/openapi_client/api/__init__.py +11 -0
- openapi/openapi-client/openapi_client/api/coco_api.py +619 -0
- openapi/openapi-client/openapi_client/api/datapoint_api.py +817 -0
- openapi/openapi-client/openapi_client/api/dataset_api.py +2290 -0
- openapi/openapi-client/openapi_client/api/identity_api.py +3181 -0
- openapi/openapi-client/openapi_client/api/newsletter_api.py +571 -0
- openapi/openapi-client/openapi_client/api/order_api.py +5390 -0
- openapi/openapi-client/openapi_client/api/validation_api.py +1670 -0
- openapi/openapi-client/openapi_client/api_client.py +797 -0
- openapi/openapi-client/openapi_client/api_response.py +21 -0
- openapi/openapi-client/openapi_client/configuration.py +479 -0
- openapi/openapi-client/openapi_client/exceptions.py +199 -0
- openapi/openapi-client/openapi_client/models/__init__.py +192 -0
- openapi/openapi-client/openapi_client/models/add_validation_rapid_model.py +116 -0
- openapi/openapi-client/openapi_client/models/add_validation_rapid_model_payload.py +238 -0
- openapi/openapi-client/openapi_client/models/add_validation_rapid_model_truth.py +238 -0
- openapi/openapi-client/openapi_client/models/admin_order_model.py +103 -0
- openapi/openapi-client/openapi_client/models/admin_order_model_paged_result.py +105 -0
- openapi/openapi-client/openapi_client/models/age_group.py +40 -0
- openapi/openapi-client/openapi_client/models/age_user_filter_model.py +97 -0
- openapi/openapi-client/openapi_client/models/aggregator_type.py +46 -0
- openapi/openapi-client/openapi_client/models/attach_category_rapid_blueprint.py +98 -0
- openapi/openapi-client/openapi_client/models/attach_category_truth.py +96 -0
- openapi/openapi-client/openapi_client/models/base_error.py +90 -0
- openapi/openapi-client/openapi_client/models/bounding_box_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/bounding_box_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/bounding_box_truth.py +102 -0
- openapi/openapi-client/openapi_client/models/box_shape.py +122 -0
- openapi/openapi-client/openapi_client/models/classification_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/classification_metadata_filter_config.py +96 -0
- openapi/openapi-client/openapi_client/models/classify_payload.py +98 -0
- openapi/openapi-client/openapi_client/models/clone_dataset_model.py +98 -0
- openapi/openapi-client/openapi_client/models/clone_order_model.py +89 -0
- openapi/openapi-client/openapi_client/models/clone_order_result.py +89 -0
- openapi/openapi-client/openapi_client/models/compare_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/compare_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/compare_truth.py +96 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_config.py +143 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_config_rapid_selection_configs_inner.py +210 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_config_referee.py +154 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_model.py +106 -0
- openapi/openapi-client/openapi_client/models/conditional_validation_rapid_selection_config.py +113 -0
- openapi/openapi-client/openapi_client/models/correlated_rapid_selection_config.py +98 -0
- openapi/openapi-client/openapi_client/models/count_classification_metadata_filter_config.py +94 -0
- openapi/openapi-client/openapi_client/models/count_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/country_user_filter_model.py +96 -0
- openapi/openapi-client/openapi_client/models/create_client_model.py +89 -0
- openapi/openapi-client/openapi_client/models/create_complex_order_model.py +95 -0
- openapi/openapi-client/openapi_client/models/create_complex_order_model_pipeline.py +126 -0
- openapi/openapi-client/openapi_client/models/create_complex_order_result.py +96 -0
- openapi/openapi-client/openapi_client/models/create_dataset_artifact_model.py +102 -0
- openapi/openapi-client/openapi_client/models/create_dataset_artifact_model_dataset.py +126 -0
- openapi/openapi-client/openapi_client/models/create_default_order_model.py +109 -0
- openapi/openapi-client/openapi_client/models/create_default_order_model_workflow_config.py +140 -0
- openapi/openapi-client/openapi_client/models/create_empty_validation_set_result.py +87 -0
- openapi/openapi-client/openapi_client/models/create_legacy_order_result.py +89 -0
- openapi/openapi-client/openapi_client/models/create_order_model.py +163 -0
- openapi/openapi-client/openapi_client/models/create_order_model_referee.py +126 -0
- openapi/openapi-client/openapi_client/models/create_order_model_selections_inner.py +154 -0
- openapi/openapi-client/openapi_client/models/create_order_model_user_filters_inner.py +154 -0
- openapi/openapi-client/openapi_client/models/create_order_model_workflow.py +140 -0
- openapi/openapi-client/openapi_client/models/create_order_result.py +96 -0
- openapi/openapi-client/openapi_client/models/create_simple_pipeline_model.py +116 -0
- openapi/openapi-client/openapi_client/models/create_simple_pipeline_model_artifacts_inner.py +126 -0
- openapi/openapi-client/openapi_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +182 -0
- openapi/openapi-client/openapi_client/models/create_unsupported_order_model.py +91 -0
- openapi/openapi-client/openapi_client/models/customer_order_model.py +101 -0
- openapi/openapi-client/openapi_client/models/customer_order_model_paged_result.py +105 -0
- openapi/openapi-client/openapi_client/models/datapoint.py +121 -0
- openapi/openapi-client/openapi_client/models/datapoint_asset.py +170 -0
- openapi/openapi-client/openapi_client/models/datapoint_get_by_id_get200_response.py +126 -0
- openapi/openapi-client/openapi_client/models/datapoint_metadata_model.py +97 -0
- openapi/openapi-client/openapi_client/models/datapoint_metadata_model_metadata_inner.py +168 -0
- openapi/openapi-client/openapi_client/models/datapoint_model.py +95 -0
- openapi/openapi-client/openapi_client/models/datapoint_model_asset.py +170 -0
- openapi/openapi-client/openapi_client/models/dataset_evaluation_step_model.py +102 -0
- openapi/openapi-client/openapi_client/models/demographic_rapid_selection_config.py +96 -0
- openapi/openapi-client/openapi_client/models/demographic_selection.py +96 -0
- openapi/openapi-client/openapi_client/models/empty_validation_truth.py +94 -0
- openapi/openapi-client/openapi_client/models/error_type.py +40 -0
- openapi/openapi-client/openapi_client/models/feature_flag.py +89 -0
- openapi/openapi-client/openapi_client/models/feature_flag_model.py +89 -0
- openapi/openapi-client/openapi_client/models/feedback_model.py +94 -0
- openapi/openapi-client/openapi_client/models/file_asset.py +108 -0
- openapi/openapi-client/openapi_client/models/file_asset_metadata_inner.py +224 -0
- openapi/openapi-client/openapi_client/models/file_asset_model.py +108 -0
- openapi/openapi-client/openapi_client/models/filter.py +134 -0
- openapi/openapi-client/openapi_client/models/filter_operator.py +44 -0
- openapi/openapi-client/openapi_client/models/free_text_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/free_text_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/gender.py +38 -0
- openapi/openapi-client/openapi_client/models/gender_user_filter_model.py +97 -0
- openapi/openapi-client/openapi_client/models/get_available_validation_sets_result.py +95 -0
- openapi/openapi-client/openapi_client/models/get_datapoints_by_dataset_id_result.py +95 -0
- openapi/openapi-client/openapi_client/models/get_dataset_by_id_result.py +87 -0
- openapi/openapi-client/openapi_client/models/get_order_by_id_result.py +98 -0
- openapi/openapi-client/openapi_client/models/get_order_results_result.py +91 -0
- openapi/openapi-client/openapi_client/models/get_public_orders_result.py +95 -0
- openapi/openapi-client/openapi_client/models/get_workflow_config_result.py +91 -0
- openapi/openapi-client/openapi_client/models/get_workflow_config_result_workflow_config.py +140 -0
- openapi/openapi-client/openapi_client/models/image_dimension_metadata.py +112 -0
- openapi/openapi-client/openapi_client/models/import_from_file_result.py +87 -0
- openapi/openapi-client/openapi_client/models/import_validation_set_from_file_result.py +87 -0
- openapi/openapi-client/openapi_client/models/issue_auth_token_result.py +87 -0
- openapi/openapi-client/openapi_client/models/issue_client_auth_token_result.py +87 -0
- openapi/openapi-client/openapi_client/models/labeling_selection.py +96 -0
- openapi/openapi-client/openapi_client/models/line_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/line_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/line_truth.py +94 -0
- openapi/openapi-client/openapi_client/models/locate_box_truth.py +104 -0
- openapi/openapi-client/openapi_client/models/locate_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/locate_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/location_metadata.py +112 -0
- openapi/openapi-client/openapi_client/models/location_metadata_exists_filter_config.py +94 -0
- openapi/openapi-client/openapi_client/models/logic_operator.py +37 -0
- openapi/openapi-client/openapi_client/models/login_model.py +89 -0
- openapi/openapi-client/openapi_client/models/metadata_visibilities.py +40 -0
- openapi/openapi-client/openapi_client/models/multi_asset.py +116 -0
- openapi/openapi-client/openapi_client/models/multi_asset_model.py +118 -0
- openapi/openapi-client/openapi_client/models/naive_referee_config.py +96 -0
- openapi/openapi-client/openapi_client/models/naive_referee_model.py +96 -0
- openapi/openapi-client/openapi_client/models/named_classification.py +100 -0
- openapi/openapi-client/openapi_client/models/named_entity_payload.py +98 -0
- openapi/openapi-client/openapi_client/models/named_entity_rapid_blueprint.py +98 -0
- openapi/openapi-client/openapi_client/models/named_entity_truth.py +104 -0
- openapi/openapi-client/openapi_client/models/never_ending_referee_config.py +94 -0
- openapi/openapi-client/openapi_client/models/newsletter_model.py +89 -0
- openapi/openapi-client/openapi_client/models/no_validation_workflow_rapid_selection_config.py +101 -0
- openapi/openapi-client/openapi_client/models/null_asset.py +104 -0
- openapi/openapi-client/openapi_client/models/null_asset_model.py +106 -0
- openapi/openapi-client/openapi_client/models/only_validation_workflow_rapid_selection_config.py +96 -0
- openapi/openapi-client/openapi_client/models/order_model.py +91 -0
- openapi/openapi-client/openapi_client/models/order_query_get200_response.py +137 -0
- openapi/openapi-client/openapi_client/models/original_filename_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/page_info.py +94 -0
- openapi/openapi-client/openapi_client/models/polygon_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/polygon_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/polygon_truth.py +94 -0
- openapi/openapi-client/openapi_client/models/private_text_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/probabilistic_attach_category_referee_config.py +98 -0
- openapi/openapi-client/openapi_client/models/prompt_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/prompt_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/public_text_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/query_orders_model.py +112 -0
- openapi/openapi-client/openapi_client/models/query_validation_set_model.py +112 -0
- openapi/openapi-client/openapi_client/models/request_password_reset_command.py +98 -0
- openapi/openapi-client/openapi_client/models/root_filter.py +107 -0
- openapi/openapi-client/openapi_client/models/send_completion_mail_step_model.py +98 -0
- openapi/openapi-client/openapi_client/models/signup_customer_model.py +93 -0
- openapi/openapi-client/openapi_client/models/signup_shadow_customer_model.py +87 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_config.py +137 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_config_blueprint.py +238 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_model.py +100 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_model_blueprint.py +238 -0
- openapi/openapi-client/openapi_client/models/sort_criterion.py +96 -0
- openapi/openapi-client/openapi_client/models/sort_direction.py +37 -0
- openapi/openapi-client/openapi_client/models/static_rapid_selection_config.py +96 -0
- openapi/openapi-client/openapi_client/models/submit_coco_model.py +91 -0
- openapi/openapi-client/openapi_client/models/submit_coco_result.py +87 -0
- openapi/openapi-client/openapi_client/models/submit_password_reset_command.py +102 -0
- openapi/openapi-client/openapi_client/models/text_asset.py +106 -0
- openapi/openapi-client/openapi_client/models/text_asset_model.py +108 -0
- openapi/openapi-client/openapi_client/models/text_metadata.py +107 -0
- openapi/openapi-client/openapi_client/models/transcription_metadata.py +107 -0
- openapi/openapi-client/openapi_client/models/transcription_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/transcription_payload.py +106 -0
- openapi/openapi-client/openapi_client/models/transcription_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/transcription_truth.py +106 -0
- openapi/openapi-client/openapi_client/models/transcription_word.py +89 -0
- openapi/openapi-client/openapi_client/models/unlock_order_result.py +87 -0
- openapi/openapi-client/openapi_client/models/update_access_model.py +87 -0
- openapi/openapi-client/openapi_client/models/update_order_model.py +87 -0
- openapi/openapi-client/openapi_client/models/update_workflow_config_model.py +100 -0
- openapi/openapi-client/openapi_client/models/update_workflow_config_model_workflow_config.py +140 -0
- openapi/openapi-client/openapi_client/models/upload_coco_result.py +91 -0
- openapi/openapi-client/openapi_client/models/upload_datapoints_result.py +97 -0
- openapi/openapi-client/openapi_client/models/upload_files_from_s3_bucket_model.py +116 -0
- openapi/openapi-client/openapi_client/models/upload_text_sources_to_dataset_model.py +89 -0
- openapi/openapi-client/openapi_client/models/validation_chance.py +91 -0
- openapi/openapi-client/openapi_client/models/validation_import_post_request_blueprint.py +238 -0
- openapi/openapi-client/openapi_client/models/validation_rapid_selection_config.py +98 -0
- openapi/openapi-client/openapi_client/models/validation_selection.py +98 -0
- openapi/openapi-client/openapi_client/models/validation_set.py +105 -0
- openapi/openapi-client/openapi_client/models/validation_set_overview_model.py +91 -0
- openapi/openapi-client/openapi_client/models/validation_set_paged_result.py +105 -0
- openapi/openapi-client/openapi_client/models/workflow_aggregation_step_model.py +112 -0
- openapi/openapi-client/openapi_client/models/workflow_labeling_step_model.py +96 -0
- openapi/openapi-client/openapi_client/models/workflow_split_model.py +110 -0
- openapi/openapi-client/openapi_client/models/workflow_split_model_filter_configs_inner.py +154 -0
- openapi/openapi-client/openapi_client/rest.py +257 -0
- rapidata/rapidata_client/{workflow/feature_flags → feature_flags}/feature_flags.py +5 -3
- rapidata/rapidata_client/metadata/__init__.py +0 -0
- rapidata/rapidata_client/metadata/base_metadata.py +12 -0
- rapidata/rapidata_client/metadata/transcription_metadata.py +19 -0
- rapidata/rapidata_client/order/dataset/rapidata_dataset.py +42 -16
- rapidata/rapidata_client/order/dataset/validation_set_builder.py +187 -0
- rapidata/rapidata_client/order/rapidata_order.py +49 -23
- rapidata/rapidata_client/order/rapidata_order_builder.py +126 -8
- rapidata/rapidata_client/rapidata_client.py +17 -5
- rapidata/rapidata_client/{workflow/referee → referee}/base_referee.py +8 -2
- rapidata/rapidata_client/{workflow/referee → referee}/classify_early_stopping_referee.py +1 -1
- rapidata/rapidata_client/{workflow/referee → referee}/naive_referee.py +5 -1
- rapidata/rapidata_client/workflow/__init__.py +0 -2
- rapidata/rapidata_client/workflow/base_workflow.py +9 -5
- rapidata/rapidata_client/workflow/classify_workflow.py +18 -3
- rapidata/rapidata_client/workflow/compare_workflow.py +13 -14
- rapidata/rapidata_client/workflow/free_text_workflow.py +14 -0
- rapidata/rapidata_client/workflow/transcription_workflow.py +22 -0
- rapidata/service/__init__.py +0 -1
- rapidata/service/openapi_service.py +43 -0
- {rapidata-0.1.3.dist-info → rapidata-0.1.6.dist-info}/METADATA +2 -2
- rapidata-0.1.6.dist-info/RECORD +227 -0
- rapidata/service/rapidata_api_services/base_service.py +0 -76
- rapidata/service/rapidata_api_services/dataset_service.py +0 -82
- rapidata/service/rapidata_api_services/order_service.py +0 -49
- rapidata/service/rapidata_api_services/rapidata_service.py +0 -18
- rapidata-0.1.3.dist-info/RECORD +0 -34
- /rapidata/service/rapidata_api_services/__init__.py → /openapi/openapi-client/openapi_client/py.typed +0 -0
- /rapidata/rapidata_client/{workflow/country_codes → country_codes}/__init__.py +0 -0
- /rapidata/rapidata_client/{workflow/country_codes → country_codes}/country_codes.py +0 -0
- /rapidata/rapidata_client/{workflow/feature_flags → feature_flags}/__init__.py +0 -0
- /rapidata/rapidata_client/{workflow/referee → referee}/__init__.py +0 -0
- {rapidata-0.1.3.dist-info → rapidata-0.1.6.dist-info}/LICENSE +0 -0
- {rapidata-0.1.3.dist-info → rapidata-0.1.6.dist-info}/WHEEL +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
from typing import Any
|
|
2
|
+
from openapi_client.models.simple_workflow_model import SimpleWorkflowModel
|
|
3
|
+
from openapi_client.models.simple_workflow_model_blueprint import SimpleWorkflowModelBlueprint
|
|
2
4
|
from rapidata.rapidata_client.workflow import Workflow
|
|
5
|
+
from openapi_client.models.free_text_rapid_blueprint import FreeTextRapidBlueprint
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
class FreeTextWorkflow(Workflow):
|
|
@@ -15,3 +18,14 @@ class FreeTextWorkflow(Workflow):
|
|
|
15
18
|
"question": self._question,
|
|
16
19
|
},
|
|
17
20
|
}
|
|
21
|
+
|
|
22
|
+
def to_model(self) -> SimpleWorkflowModel:
|
|
23
|
+
blueprint = FreeTextRapidBlueprint(
|
|
24
|
+
_t="FreeTextBlueprint",
|
|
25
|
+
question=self._question,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
return SimpleWorkflowModel(
|
|
29
|
+
_t="SimpleWorkflow",
|
|
30
|
+
blueprint=SimpleWorkflowModelBlueprint(blueprint),
|
|
31
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from openapi_client.models.simple_workflow_model import SimpleWorkflowModel
|
|
2
|
+
from openapi_client.models.simple_workflow_model_blueprint import SimpleWorkflowModelBlueprint
|
|
3
|
+
from openapi_client.models.transcription_rapid_blueprint import TranscriptionRapidBlueprint
|
|
4
|
+
from rapidata.rapidata_client.workflow.base_workflow import Workflow
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TranscriptionWorkflow(Workflow):
|
|
8
|
+
|
|
9
|
+
def __init__(self, instruction: str):
|
|
10
|
+
super().__init__(type="SimpleWorkflowConfig")
|
|
11
|
+
self._instruction = instruction
|
|
12
|
+
|
|
13
|
+
def to_model(self) -> SimpleWorkflowModel:
|
|
14
|
+
blueprint = TranscriptionRapidBlueprint(
|
|
15
|
+
_t="TranscriptionBlueprint",
|
|
16
|
+
title=self._instruction
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
return SimpleWorkflowModel(
|
|
20
|
+
_t="SimpleWorkflow",
|
|
21
|
+
blueprint=SimpleWorkflowModelBlueprint(blueprint)
|
|
22
|
+
)
|
rapidata/service/__init__.py
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from openapi_client.api.dataset_api import DatasetApi
|
|
2
|
+
from openapi_client.api.identity_api import IdentityApi
|
|
3
|
+
from openapi_client.api.order_api import OrderApi
|
|
4
|
+
from openapi_client.api.validation_api import ValidationApi
|
|
5
|
+
from openapi_client.api_client import ApiClient
|
|
6
|
+
from openapi_client.configuration import Configuration
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class OpenAPIService:
|
|
10
|
+
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
client_id: str,
|
|
14
|
+
client_secret: str,
|
|
15
|
+
endpoint: str = "https://api.rapidata.ai",
|
|
16
|
+
):
|
|
17
|
+
client_configuration = Configuration(host=endpoint)
|
|
18
|
+
self.api_client = ApiClient(configuration=client_configuration)
|
|
19
|
+
|
|
20
|
+
identity_api = IdentityApi(self.api_client)
|
|
21
|
+
|
|
22
|
+
result = identity_api.identity_get_client_auth_token_post(
|
|
23
|
+
client_id=client_id,
|
|
24
|
+
_headers={"Authorization": f"Basic {client_secret}"},
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
client_configuration.api_key["bearer"] = f"Bearer {result.auth_token}"
|
|
28
|
+
self._api_client = ApiClient()
|
|
29
|
+
self._order_api = OrderApi(self.api_client)
|
|
30
|
+
self._dataset_api = DatasetApi(self.api_client)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def order_api(self) -> OrderApi:
|
|
34
|
+
return self._order_api
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def dataset_api(self) -> DatasetApi:
|
|
38
|
+
return self._dataset_api
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def validation_api(self) -> ValidationApi:
|
|
42
|
+
return ValidationApi(self.api_client)
|
|
43
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rapidata
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Rapidata package containing the Rapidata Python Client to interact with the Rapidata Web API in an easy way.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Rapidata AG
|
|
@@ -17,5 +17,5 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
# Rapidata Python Client
|
|
18
18
|
Python client to interface with the Rapidata API.
|
|
19
19
|
|
|
20
|
-
Docs: https://rapidataai.github.io/rapidata-python
|
|
20
|
+
Docs: https://rapidataai.github.io/rapidata-python-sdk
|
|
21
21
|
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
openapi/openapi-client/openapi_client/__init__.py,sha256=pIwwX_5AX8h_D0iuOT_Hk1fM_DyxR2d-Be5D-N9vF_g,15574
|
|
2
|
+
openapi/openapi-client/openapi_client/api/__init__.py,sha256=e2TO2ipnMEyEvGQP8CIiF1TNM5YQrqlspmX4BYVeUIk,434
|
|
3
|
+
openapi/openapi-client/openapi_client/api/coco_api.py,sha256=9mT7djVEmUAiizjstOmmfrS9DB0-_qvwSfKQVe0qyq0,24896
|
|
4
|
+
openapi/openapi-client/openapi_client/api/datapoint_api.py,sha256=PyTGom1kJevWwMkFOunTjsUkiAfuRHyWy-o1hcdNJpI,31574
|
|
5
|
+
openapi/openapi-client/openapi_client/api/dataset_api.py,sha256=FlCbKlsqtnGdYVudO_DshPPV0Vp2dl16bHsMKtMm9ck,91030
|
|
6
|
+
openapi/openapi-client/openapi_client/api/identity_api.py,sha256=XpaCk7m26iAeVeAdUI_CBPq_xR01t5HI-6h7tLm2R9Q,127234
|
|
7
|
+
openapi/openapi-client/openapi_client/api/newsletter_api.py,sha256=vASN1ybhpw6CJLcmlBGQRe_hVdVPtsAZRhKcwW-Xkw4,22509
|
|
8
|
+
openapi/openapi-client/openapi_client/api/order_api.py,sha256=vRXNfeAnnrFSzfpeJU2xFCOzgaeBaEMaZPAL9UeIkdY,215298
|
|
9
|
+
openapi/openapi-client/openapi_client/api/validation_api.py,sha256=OYsj-XRxXgHwdbvv-n7vYn62wv4HUrVV9uM8I3rArrc,66547
|
|
10
|
+
openapi/openapi-client/openapi_client/api_client.py,sha256=6ps_VyVIV7VOzt0QOKq5096NdMJkUyJA6J5lRCpmEhM,27397
|
|
11
|
+
openapi/openapi-client/openapi_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
12
|
+
openapi/openapi-client/openapi_client/configuration.py,sha256=kK09k62mkR2-aSv86CMFTKMVSa2SC-ti7RCOADjPR6g,15921
|
|
13
|
+
openapi/openapi-client/openapi_client/exceptions.py,sha256=eLLd1fxM0Ygf3IIG6aNx9hdy79drst5Cem0UjI_NamM,5978
|
|
14
|
+
openapi/openapi-client/openapi_client/models/__init__.py,sha256=WzvjRojvsLqu_An5b-maG_xsQuO2kw1mN4GC14fGzbQ,14644
|
|
15
|
+
openapi/openapi-client/openapi_client/models/add_validation_rapid_model.py,sha256=wk3kgw3ygAaqUBnnpYDPeutzMfdc8q92NzORdjCbdrE,4903
|
|
16
|
+
openapi/openapi-client/openapi_client/models/add_validation_rapid_model_payload.py,sha256=ezVh7g6zbsnLyih9Uj2uGK97SQs5HiZogPQntKxjgy4,11047
|
|
17
|
+
openapi/openapi-client/openapi_client/models/add_validation_rapid_model_truth.py,sha256=NJJUdxNlLZiwsmLO08XH_wZZpzGA_rcpqY1Hb-ATdoM,10999
|
|
18
|
+
openapi/openapi-client/openapi_client/models/admin_order_model.py,sha256=46FTD-pdTIVnETmYnx_P_-MMPPId0QV9BPuozlP1R8M,3296
|
|
19
|
+
openapi/openapi-client/openapi_client/models/admin_order_model_paged_result.py,sha256=TmavTeSmcxKr-LJK01xaHsUsQwHv0RYWYHSuXl_CzB8,3489
|
|
20
|
+
openapi/openapi-client/openapi_client/models/age_group.py,sha256=vjo1xwktBdG8BpVxs0vtmqAoQxixUKcoMmpUIF5FH-8,859
|
|
21
|
+
openapi/openapi-client/openapi_client/models/age_user_filter_model.py,sha256=z4M3Ns84w_hcWJl8Atzjdib2EWWqq2FAIEWL0raRSJA,3109
|
|
22
|
+
openapi/openapi-client/openapi_client/models/aggregator_type.py,sha256=IR1uVYj85BF3OCQoPLjBhmuYmf3qY-8jeVHWnjyLYAk,1073
|
|
23
|
+
openapi/openapi-client/openapi_client/models/attach_category_rapid_blueprint.py,sha256=sdPTViyuCnEz4KNnNxIc_sSD0Qv3ux9y6tY4--hGISM,3164
|
|
24
|
+
openapi/openapi-client/openapi_client/models/attach_category_truth.py,sha256=XAc0_cCEPP0iNEaak6ihK9_lExQSGboMBIlO6SebU6o,3062
|
|
25
|
+
openapi/openapi-client/openapi_client/models/base_error.py,sha256=VVpaBJnalLCbdHx0xYvUkcX1bCgh5Xc51HUutVqi7jM,2754
|
|
26
|
+
openapi/openapi-client/openapi_client/models/bounding_box_payload.py,sha256=ttIPi-azQEOpn6TpJGPqoYb-Tv4fIQe9LKYnR36-d2o,2968
|
|
27
|
+
openapi/openapi-client/openapi_client/models/bounding_box_rapid_blueprint.py,sha256=PUB5vE338XDhwWsGXZa9d1fUzxag3uYzYgbF5qwbCD4,3004
|
|
28
|
+
openapi/openapi-client/openapi_client/models/bounding_box_truth.py,sha256=QTlYZFc1ZG-_pO8n0fpfuT4_7g3xm9i7MUDhhtEJGa4,3342
|
|
29
|
+
openapi/openapi-client/openapi_client/models/box_shape.py,sha256=8sPLY_p1e9yjCGtUBbtfeZcj2StrnPRY8RtOZ2CiwwM,4192
|
|
30
|
+
openapi/openapi-client/openapi_client/models/classification_metadata.py,sha256=JDGbEp4SRl0stOOFl97T7L5MlHU4l6ss_dsW6pTxajo,3639
|
|
31
|
+
openapi/openapi-client/openapi_client/models/classification_metadata_filter_config.py,sha256=Piv8LaeS856jP5SCbXpOAR-zbqVtXQTUtXxdIC6ViB4,3128
|
|
32
|
+
openapi/openapi-client/openapi_client/models/classify_payload.py,sha256=UmIU4mE6pR3KdrxEzFTgPTsN0H8YUPiUaZuy2JOTnAE,3104
|
|
33
|
+
openapi/openapi-client/openapi_client/models/clone_dataset_model.py,sha256=FF8AFEmI1VGDI0w9BRF3L_kPK_ZHYWRz-dB0WObI0mM,3259
|
|
34
|
+
openapi/openapi-client/openapi_client/models/clone_order_model.py,sha256=VAs3yUGy6XvTZHO5TYiE4kBxMTQ2DlUqFu8fY2w0_TY,2787
|
|
35
|
+
openapi/openapi-client/openapi_client/models/clone_order_result.py,sha256=YKZzWptburCz3N9bahiEtWviYEfUXOPOmuI1xRihmqk,2644
|
|
36
|
+
openapi/openapi-client/openapi_client/models/compare_payload.py,sha256=In-lIEGOZVO6DdI5Vfsyu02ykmEoWbe8xVIJL4eaRrg,2944
|
|
37
|
+
openapi/openapi-client/openapi_client/models/compare_rapid_blueprint.py,sha256=hCHLGAuZ6yK8Zv09lLqDBsxf-2r28I_PhZs1Lmr-CMw,2980
|
|
38
|
+
openapi/openapi-client/openapi_client/models/compare_truth.py,sha256=1aVg80bn_0Q_ZnuA0uaoQ9wmiQ4GhaGaGQrx4povU0s,2955
|
|
39
|
+
openapi/openapi-client/openapi_client/models/compare_workflow_config.py,sha256=kjtplOq-xPO0mI-nLI6-LpjRbT8gXQqCcPZU3tvKPDY,6485
|
|
40
|
+
openapi/openapi-client/openapi_client/models/compare_workflow_config_rapid_selection_configs_inner.py,sha256=Z_5OI4Ncm0z_TNfM1IMPJShV0-QjibUsYwkCHC0dqMQ,11884
|
|
41
|
+
openapi/openapi-client/openapi_client/models/compare_workflow_config_referee.py,sha256=NUWhwhmGaNztqVqPDpFbsvbm6Y0KR3vNNIGMV4dfT9A,6941
|
|
42
|
+
openapi/openapi-client/openapi_client/models/compare_workflow_model.py,sha256=Kbk_cOV3PcjzZ4PpELcGcI6U7ue_Ez8w5Tj6dpV35l0,4574
|
|
43
|
+
openapi/openapi-client/openapi_client/models/conditional_validation_rapid_selection_config.py,sha256=pM8ANg9y4l1dpqKuMFCz1FHRfR6vwOAuii-y7wcoZH0,4280
|
|
44
|
+
openapi/openapi-client/openapi_client/models/correlated_rapid_selection_config.py,sha256=s1xiNfWthzmV-7lripBIvCUSSP5QkC6RgNjEo9p9S48,3208
|
|
45
|
+
openapi/openapi-client/openapi_client/models/count_classification_metadata_filter_config.py,sha256=5DemyAZF4RxPw1lOiDP3oOkPdOXmRRR4zzVbTa7Kvi0,3063
|
|
46
|
+
openapi/openapi-client/openapi_client/models/count_metadata.py,sha256=I3rwbw3TCbNaXthfVZNMyzFelb4xDI9oRU8_rafqfeM,3542
|
|
47
|
+
openapi/openapi-client/openapi_client/models/country_user_filter_model.py,sha256=K1tE-CBdFq7LcjBqNeeoHxtu__R8bcuM5o5Nv_H4gNc,3113
|
|
48
|
+
openapi/openapi-client/openapi_client/models/create_client_model.py,sha256=mhSgaiQjgzkyXqA8_SZdHFDjjNF8aRgTGbynx3-TXW0,2784
|
|
49
|
+
openapi/openapi-client/openapi_client/models/create_complex_order_model.py,sha256=F3JLCT6gRXQ8b093zfKRDi-gT3DcYIKSNQSSxDt3Ego,3344
|
|
50
|
+
openapi/openapi-client/openapi_client/models/create_complex_order_model_pipeline.py,sha256=4OY2VfJGgYHJCLz58yN_VVNTKLXTmVEzaHk7lagSpbU,4934
|
|
51
|
+
openapi/openapi-client/openapi_client/models/create_complex_order_result.py,sha256=keKXP6Gy4wco2bcRUX8xDCTtTk5me_iyuIow8fo3Okg,3054
|
|
52
|
+
openapi/openapi-client/openapi_client/models/create_dataset_artifact_model.py,sha256=C88RDZUhdz_w4eW5lD9YkT_mOH5OB5aaPw0EwWOciTM,3570
|
|
53
|
+
openapi/openapi-client/openapi_client/models/create_dataset_artifact_model_dataset.py,sha256=XQ5ldigBdBVALiOjR6XOYo1i_5INzDJoCQNsmdChRmQ,4816
|
|
54
|
+
openapi/openapi-client/openapi_client/models/create_default_order_model.py,sha256=E2c9lmWopPrxqH9ruwUJC2AM5noChTMmRc6Pmae1xBU,4424
|
|
55
|
+
openapi/openapi-client/openapi_client/models/create_default_order_model_workflow_config.py,sha256=PLpUgw5LjkqZKwAcBGXY00rA0NE1ZrD55XNQ--n74nI,5778
|
|
56
|
+
openapi/openapi-client/openapi_client/models/create_empty_validation_set_result.py,sha256=Z8s0Kjz2lgkbFpbEOXUcu1Rm-iTTVv6vCArbXvwmqfA,2628
|
|
57
|
+
openapi/openapi-client/openapi_client/models/create_legacy_order_result.py,sha256=BR1XqPKq9QkDe0UytTW6dpihAeNyfCc4C1m0XfY53hQ,2672
|
|
58
|
+
openapi/openapi-client/openapi_client/models/create_order_model.py,sha256=s8JXmyF2-aYSDZVBHoD8RsDJBcp7ByF2sQqDqlNuHN0,8041
|
|
59
|
+
openapi/openapi-client/openapi_client/models/create_order_model_referee.py,sha256=02ldebsh4_lnxq-wgRXfXfDicAQF9YyI74LrM9Cmg18,4788
|
|
60
|
+
openapi/openapi-client/openapi_client/models/create_order_model_selections_inner.py,sha256=LC2d_BQ_JQNyLxQ9ta2H4ZnGEgeShXuidj4O1eanwRY,6551
|
|
61
|
+
openapi/openapi-client/openapi_client/models/create_order_model_user_filters_inner.py,sha256=UvgZZqotO_w4rBdRAUb5xyFW2D_IapyZ0S8DKFXCtyg,6656
|
|
62
|
+
openapi/openapi-client/openapi_client/models/create_order_model_workflow.py,sha256=ev27D90N5Y7arH9P3CK_zegXaQXvCo82IHWXgVmpN7M,5708
|
|
63
|
+
openapi/openapi-client/openapi_client/models/create_order_result.py,sha256=JfqjZHcmZCNtAznfXs_iZwkBwxCNRY1mHp9Zx3kSMdo,3026
|
|
64
|
+
openapi/openapi-client/openapi_client/models/create_simple_pipeline_model.py,sha256=muLHrQBf1IflN2feUNOOBwZM8rNuorfMOoXQlpUOMKs,4719
|
|
65
|
+
openapi/openapi-client/openapi_client/models/create_simple_pipeline_model_artifacts_inner.py,sha256=j5JvkFq9w54UWZecT_n5cB2QD48AlcOXtoT5avknUZw,5022
|
|
66
|
+
openapi/openapi-client/openapi_client/models/create_simple_pipeline_model_pipeline_steps_inner.py,sha256=vRktHBCtNr0uM7xXvqZyzazGtXIjHMw9-0xeyEa0C-k,8812
|
|
67
|
+
openapi/openapi-client/openapi_client/models/create_unsupported_order_model.py,sha256=3mtEMVJIoaK1J15ypsAYoii6q40_1c3Tq6r0MkOOuHI,3033
|
|
68
|
+
openapi/openapi-client/openapi_client/models/customer_order_model.py,sha256=o7L0UZF0BupnYx858VAiduZ3ELWZ1mQxqKwAE7MXyRk,3180
|
|
69
|
+
openapi/openapi-client/openapi_client/models/customer_order_model_paged_result.py,sha256=EyUKHxIHwxv5KP_RhVF3K2kJw5urCtVsd6ldoAMcqrg,3513
|
|
70
|
+
openapi/openapi-client/openapi_client/models/datapoint.py,sha256=UDMLAI3K7llK0JsuAtR-4zzQXQzuvQ4YzFw7EyhPVt8,4290
|
|
71
|
+
openapi/openapi-client/openapi_client/models/datapoint_asset.py,sha256=5uq9-iliJYwYxHDZnJTSzpCsQY4y8aI-wpDJYqnGOgw,6670
|
|
72
|
+
openapi/openapi-client/openapi_client/models/datapoint_get_by_id_get200_response.py,sha256=E7NPYMqVu84EY2wWKsy1wSyPgoLkNCKzApelrAQoAJE,4663
|
|
73
|
+
openapi/openapi-client/openapi_client/models/datapoint_metadata_model.py,sha256=_lKac6RsqWdzgCqXz7iper203y45COmsl8xMqFhPCfU,3365
|
|
74
|
+
openapi/openapi-client/openapi_client/models/datapoint_metadata_model_metadata_inner.py,sha256=0SaowDco3iTKX69n9G4w-YStdNQ2R4wm9wlSdKhZJ0k,7690
|
|
75
|
+
openapi/openapi-client/openapi_client/models/datapoint_model.py,sha256=u4-1lmrH5J8iXirQqhRqrP8Lz5ehHd6Tad2YfoY_caE,2971
|
|
76
|
+
openapi/openapi-client/openapi_client/models/datapoint_model_asset.py,sha256=-EQhgrIJMhBfHm8ViIozq_4MdjnP5ScgD4hMPjtTQNU,7059
|
|
77
|
+
openapi/openapi-client/openapi_client/models/dataset_evaluation_step_model.py,sha256=7i33ol7dbVK8gmg6kzqBhcQF10s-FQbKmGqir3vCero,3917
|
|
78
|
+
openapi/openapi-client/openapi_client/models/demographic_rapid_selection_config.py,sha256=6Gl5HCZAxJcSjU8yTbaPncl7_zmiSzOYvngxjAwiSHk,3102
|
|
79
|
+
openapi/openapi-client/openapi_client/models/demographic_selection.py,sha256=XnN9W4X2AnQUj7TuA7kAMn4EKJsNA2J5-b5IVT6gnYA,3165
|
|
80
|
+
openapi/openapi-client/openapi_client/models/empty_validation_truth.py,sha256=dn4EDj_8DPBtupr2Hrmk-g9PuclrmJoe080rSBD_F6A,2911
|
|
81
|
+
openapi/openapi-client/openapi_client/models/error_type.py,sha256=AZKEf0UaGxP2PW5Gf9jYolx9GWBD9rWyDuzXcbgsm6E,842
|
|
82
|
+
openapi/openapi-client/openapi_client/models/feature_flag.py,sha256=Ctw_S0nxSr0gz4n2GQW1QmcvfVNV8A-IldefaojbgAc,2531
|
|
83
|
+
openapi/openapi-client/openapi_client/models/feature_flag_model.py,sha256=Bzq7vkZRoYnft2_2-HKHLj4FVa6a5lbN3x34-m8vFsA,2803
|
|
84
|
+
openapi/openapi-client/openapi_client/models/feedback_model.py,sha256=FV8M8BQq7Ks7_tIG3PboOFRhzwYtsQmq4039X15Cz6Y,2929
|
|
85
|
+
openapi/openapi-client/openapi_client/models/file_asset.py,sha256=ahH3aHwYSqnheBUawI_OY4g0x5BIExNShGoFYFnjorw,3722
|
|
86
|
+
openapi/openapi-client/openapi_client/models/file_asset_metadata_inner.py,sha256=TYHsTkuJu8rPy5R3HIkU5fybptOHtuB_FkQQKWsCUyE,10558
|
|
87
|
+
openapi/openapi-client/openapi_client/models/file_asset_model.py,sha256=YNK2ijxHE1h4IJX2BoWYsBqeOl0fEwGOFz4H1pXs4Wg,3675
|
|
88
|
+
openapi/openapi-client/openapi_client/models/filter.py,sha256=8BjSKkXDG7eTc-PNHU_UI3C4tZsrgEPGof8pdUlPOq8,4527
|
|
89
|
+
openapi/openapi-client/openapi_client/models/filter_operator.py,sha256=hVWuGOU6iseDxdJCG4E-b5Pbb8w3rCLT26ukvmwx6G0,889
|
|
90
|
+
openapi/openapi-client/openapi_client/models/free_text_payload.py,sha256=u5p0ybMMOH2ecmzT3FauQs0LgQgLNnUOD8Kk1umOqtw,2952
|
|
91
|
+
openapi/openapi-client/openapi_client/models/free_text_rapid_blueprint.py,sha256=Tpf2durJj9olZbI-QPl89BiLESrOs9fDbATpch8tRj4,2988
|
|
92
|
+
openapi/openapi-client/openapi_client/models/gender.py,sha256=hipBrotzYj7aZkY8pNReJcEak-1KMTaCzGBQ6sCR-gQ,776
|
|
93
|
+
openapi/openapi-client/openapi_client/models/gender_user_filter_model.py,sha256=V85mFhFzsopbSK3hdcHJ04ug1NHofjv05KGlRJY8yos,3112
|
|
94
|
+
openapi/openapi-client/openapi_client/models/get_available_validation_sets_result.py,sha256=4RsMdBUJ_qjFgswkfpRrMaqzqfJrVTTq8qgKWIZGn4Y,3223
|
|
95
|
+
openapi/openapi-client/openapi_client/models/get_datapoints_by_dataset_id_result.py,sha256=x1tLA5UfQUbbPeYBNN2SGpI-QfGZ_Dt73U87nqQwhvQ,2999
|
|
96
|
+
openapi/openapi-client/openapi_client/models/get_dataset_by_id_result.py,sha256=buK_gpa_G4uTQ3g05A3P7kW9v1pfsWU_l1EXCAGyC_o,2502
|
|
97
|
+
openapi/openapi-client/openapi_client/models/get_order_by_id_result.py,sha256=TWKtSi0kGjnVlEpNJFmzxKZNLffpIv9HpCwxUEFN6iE,3127
|
|
98
|
+
openapi/openapi-client/openapi_client/models/get_order_results_result.py,sha256=zHCTEa1VgbIoGXHsBtJ3z8wZ9X8hy0zRh_GpA4pT0vA,2830
|
|
99
|
+
openapi/openapi-client/openapi_client/models/get_public_orders_result.py,sha256=qOwwQ4qBKJUfgDWglb86_jcXCr9ET_CPUZV8kMWBrR0,2971
|
|
100
|
+
openapi/openapi-client/openapi_client/models/get_workflow_config_result.py,sha256=9XMx01CIus-sPTKzIeQ5e9CNHPF5bJLtgjqHYuF5sGo,3018
|
|
101
|
+
openapi/openapi-client/openapi_client/models/get_workflow_config_result_workflow_config.py,sha256=mtD5nZdb1s4dXM_a-IVfcPoOdHQyq51HiG4lTmebVWw,5789
|
|
102
|
+
openapi/openapi-client/openapi_client/models/image_dimension_metadata.py,sha256=SF1xTu_MEgda65TfrLD5uAltGntNuPhoabtvODhttDg,3721
|
|
103
|
+
openapi/openapi-client/openapi_client/models/import_from_file_result.py,sha256=t_NhoUCnoY_jOD7xwUY7PjV2iQRqll3klaxo0oDKy60,2557
|
|
104
|
+
openapi/openapi-client/openapi_client/models/import_validation_set_from_file_result.py,sha256=HqJXmQ8HwpciJb75ppZN_KAaBQZq_hLaJz-_lgsmplk,2640
|
|
105
|
+
openapi/openapi-client/openapi_client/models/issue_auth_token_result.py,sha256=e-nW-90PLpY8jU1LvUFIKzO7YAidOWSP2YbnSqp2tzM,2574
|
|
106
|
+
openapi/openapi-client/openapi_client/models/issue_client_auth_token_result.py,sha256=VDZ3-wCqDh4S0KCA3Z8crojS9tjgebLta07JS5w0oYA,2581
|
|
107
|
+
openapi/openapi-client/openapi_client/models/labeling_selection.py,sha256=H_wzf1c9nCZfg5VvKpe5_jNP-rzfR-7bUbu20ZLLLhg,3139
|
|
108
|
+
openapi/openapi-client/openapi_client/models/line_payload.py,sha256=MlT2YmnUlHsaSSRXW6svbBE7j4vxiQYXIsYrMkP1hgc,2912
|
|
109
|
+
openapi/openapi-client/openapi_client/models/line_rapid_blueprint.py,sha256=4iemG24yUYNfvv7SpbvxtHITuPdr4iVuMoqFHfo1xRU,2948
|
|
110
|
+
openapi/openapi-client/openapi_client/models/line_truth.py,sha256=D-SsupyjvCQ7bWEFnA6y3vZN8k-dV2E_I4c00fwLIyE,2823
|
|
111
|
+
openapi/openapi-client/openapi_client/models/locate_box_truth.py,sha256=G5vXwVINBjyH2gKly6lXoPoboGBJ7jdXXYpR9YNc7_g,3518
|
|
112
|
+
openapi/openapi-client/openapi_client/models/locate_payload.py,sha256=x4ded1NZN3Im8CX_v5OgcfbXuqeG1Y_I8363q4k1N0g,2928
|
|
113
|
+
openapi/openapi-client/openapi_client/models/locate_rapid_blueprint.py,sha256=cYf4K62Z9O6wryACsaTYpT5Bj2BKJKjyyBo9JSPv1yU,2964
|
|
114
|
+
openapi/openapi-client/openapi_client/models/location_metadata.py,sha256=x4CyHarejLwQwrC-iP1YkkCIFxP7hSnTN8lUg6K80sU,3663
|
|
115
|
+
openapi/openapi-client/openapi_client/models/location_metadata_exists_filter_config.py,sha256=GGWqy8sbtqtrWEkKITTWMHzpZuggT37Q36OtW-7smmI,3023
|
|
116
|
+
openapi/openapi-client/openapi_client/models/logic_operator.py,sha256=VK5jJ5BBiXUumnI_dtflu4l_wNF-HrrUAtqpO_43RPE,744
|
|
117
|
+
openapi/openapi-client/openapi_client/models/login_model.py,sha256=FvbKlIdqtry34vyZjRCOCeH-AEmHByQ7CzHNlgvSzLg,2750
|
|
118
|
+
openapi/openapi-client/openapi_client/models/metadata_visibilities.py,sha256=KkMzqEHMNxjkgc4boQi9oiVdb53cWLISawH5dBdybLs,839
|
|
119
|
+
openapi/openapi-client/openapi_client/models/multi_asset.py,sha256=Y0IMDfJYN7-DL-Qu7wWlNxg0czsFHGR5FJz4OFHBx4Y,4115
|
|
120
|
+
openapi/openapi-client/openapi_client/models/multi_asset_model.py,sha256=iKaTJSAvIVtNcsxyud0GWhtvQIdgsdfjR_LPu0zBcCU,4243
|
|
121
|
+
openapi/openapi-client/openapi_client/models/naive_referee_config.py,sha256=p5XLvLHooMas14JK0_14lPVWJN-ItxycciW0Kb6WdrY,3083
|
|
122
|
+
openapi/openapi-client/openapi_client/models/naive_referee_model.py,sha256=ielKGsWeAQIo4bpcD8bWPaK938rt3G3Sgatkm_Cv7Ng,3114
|
|
123
|
+
openapi/openapi-client/openapi_client/models/named_classification.py,sha256=mpHquv-iqXsIowCIdGp1kYvUtDUKbYFq8aVt8MEj3CA,3149
|
|
124
|
+
openapi/openapi-client/openapi_client/models/named_entity_payload.py,sha256=P39HOUrigBrEhgYdw-XQKVRV8UR8Ti_LD2gUUWAZz6E,3051
|
|
125
|
+
openapi/openapi-client/openapi_client/models/named_entity_rapid_blueprint.py,sha256=NDXRJe6fSkzlegjGLC33bD3pP2cPbCjbIAdA6yE_rbA,3087
|
|
126
|
+
openapi/openapi-client/openapi_client/models/named_entity_truth.py,sha256=4DeFfJ54qCMoE8fgVoAozzTFeOdwIWMN9LUgAfeF0Fg,3564
|
|
127
|
+
openapi/openapi-client/openapi_client/models/never_ending_referee_config.py,sha256=_dsfboSZ3m2Wofb3p-qUARxwXaLC_nzB7LEHNehJLns,2943
|
|
128
|
+
openapi/openapi-client/openapi_client/models/newsletter_model.py,sha256=wXWtCaodMw40dhX0krLuTRMCBs5OICS4fmH6FaAKlyA,2755
|
|
129
|
+
openapi/openapi-client/openapi_client/models/no_validation_workflow_rapid_selection_config.py,sha256=SgOfHf2WXg97Ko_2YcPl9iMekkChtrQPGwFm93TpBMo,3389
|
|
130
|
+
openapi/openapi-client/openapi_client/models/null_asset.py,sha256=qhPtaKbSwi3tM7MVHZTCtAajbG64bQvEOf5ppTNgmN4,3465
|
|
131
|
+
openapi/openapi-client/openapi_client/models/null_asset_model.py,sha256=ZL9hP1aQWjaZMtvZnFo9pNs9wjFZAH0SOdspxlXiDoQ,3567
|
|
132
|
+
openapi/openapi-client/openapi_client/models/only_validation_workflow_rapid_selection_config.py,sha256=I_k5RsXAXbK8Oe3yhQjN_JO1t1kvPnA4pemQS_CzHmw,3231
|
|
133
|
+
openapi/openapi-client/openapi_client/models/order_model.py,sha256=RBNDwpGUc4d-2fPg9Fg8VW4Ml5D9yc5TnJGYu95kXrg,2647
|
|
134
|
+
openapi/openapi-client/openapi_client/models/order_query_get200_response.py,sha256=WCkPmqxsC42cUhGv3JxHMWg4rikK9hWKRmfg5jBsc3c,5866
|
|
135
|
+
openapi/openapi-client/openapi_client/models/original_filename_metadata.py,sha256=YkS60Prkp-xSYZlZ24ReFrV5o82wxHNBrV-3xOFiEJ4,3698
|
|
136
|
+
openapi/openapi-client/openapi_client/models/page_info.py,sha256=8vmnkRGqq38mIQCOMInYrPLFDBALxkWZUM-Z_M1-XK4,2766
|
|
137
|
+
openapi/openapi-client/openapi_client/models/polygon_payload.py,sha256=s59uxEbr0sA8zfOFdcjcb9cDf06q4M4dUxG6zu__WmE,2936
|
|
138
|
+
openapi/openapi-client/openapi_client/models/polygon_rapid_blueprint.py,sha256=2cpLAiFU3BGjovD2iLw7RTqrQaRAKU0U6AKIiLmqOX4,2972
|
|
139
|
+
openapi/openapi-client/openapi_client/models/polygon_truth.py,sha256=EmaG2vlgGLtQIHlBwT5dyRxp1OwX1i0waLFCIAiTNDs,2847
|
|
140
|
+
openapi/openapi-client/openapi_client/models/private_text_metadata_input.py,sha256=2v1OJ1FgMasHSytfKmE1pwyIYGO8DtHG6mqNcDgxW2A,3097
|
|
141
|
+
openapi/openapi-client/openapi_client/models/probabilistic_attach_category_referee_config.py,sha256=TU6IyF0kW0upKi08AY7XFLeBSmPfj3cniTwnLb3RT94,3315
|
|
142
|
+
openapi/openapi-client/openapi_client/models/prompt_metadata.py,sha256=8oP0YeQ2Uf5v9T_HKMV9UVQz7MW5e8m34dcvfLrZUI4,3543
|
|
143
|
+
openapi/openapi-client/openapi_client/models/prompt_metadata_input.py,sha256=6dTgZ2OPerrwmpHoEUyQRNuyva-BaCsqS-AANx1zdTI,3065
|
|
144
|
+
openapi/openapi-client/openapi_client/models/public_text_metadata_input.py,sha256=n9-TY_32304RZ4N6B5uA16YhseExJZjF14MmlCcdm1U,3089
|
|
145
|
+
openapi/openapi-client/openapi_client/models/query_orders_model.py,sha256=ilTQhMHGXfyx32vsTiFghdKnmMQgxkY6S15pmyKVxiU,4111
|
|
146
|
+
openapi/openapi-client/openapi_client/models/query_validation_set_model.py,sha256=ioqdUig2SCPdk4AyE5KxiGSGeBb2a_Nu7asu_DdrcAU,4224
|
|
147
|
+
openapi/openapi-client/openapi_client/models/request_password_reset_command.py,sha256=6bSYVzN3KNKd5u0Xl0vSjHRKI2uowIavU_wMbmLktvo,3174
|
|
148
|
+
openapi/openapi-client/openapi_client/models/root_filter.py,sha256=SOavjhMZrY1QlGAGwgD8YV90FKsrXS-8av7W60VuUx8,3358
|
|
149
|
+
openapi/openapi-client/openapi_client/models/send_completion_mail_step_model.py,sha256=iU90CqnaTiC5DmhLKKSJNV_xcKJtnbEJ0NpLtUUhvPM,3382
|
|
150
|
+
openapi/openapi-client/openapi_client/models/signup_customer_model.py,sha256=_0ELpAIeH1HPC3zMlLraMz-QbZl1z0O8arckiLBOldo,3077
|
|
151
|
+
openapi/openapi-client/openapi_client/models/signup_shadow_customer_model.py,sha256=Io0xUf9zTZuqSHgNCCgBNy-nRF7enYnr8VRX4NxnBdU,2628
|
|
152
|
+
openapi/openapi-client/openapi_client/models/simple_workflow_config.py,sha256=g-MJBmXPMq9EcUZfJ41c-QBAEPhnI302liK5AGIwY_w,6077
|
|
153
|
+
openapi/openapi-client/openapi_client/models/simple_workflow_config_blueprint.py,sha256=fL2NrjdaL66X18bXiU7k9cyCrP121zkTztbM4yZmSc8,12219
|
|
154
|
+
openapi/openapi-client/openapi_client/models/simple_workflow_model.py,sha256=H-rIi0BQtmDjl9pUvQea33rrkVaHrGDldWqcigBIf3A,3465
|
|
155
|
+
openapi/openapi-client/openapi_client/models/simple_workflow_model_blueprint.py,sha256=U2FMHBWyLqjvLQQByBtirw9aPSrQ_Lv0fWPCu6hpSy4,12345
|
|
156
|
+
openapi/openapi-client/openapi_client/models/sort_criterion.py,sha256=klwKhELiScAGHRL8yF_TtL0X_4Z4ddBBAtPFRsOGQY8,2901
|
|
157
|
+
openapi/openapi-client/openapi_client/models/sort_direction.py,sha256=yNLZqvgL5fHbD98kMWFAsfgqn3gKM_GFIyRVfheZydI,748
|
|
158
|
+
openapi/openapi-client/openapi_client/models/static_rapid_selection_config.py,sha256=RnjyRhAOaxmJ2PW-X2m4G0QZlm-8vw2d9ZO5uneNOtg,3073
|
|
159
|
+
openapi/openapi-client/openapi_client/models/submit_coco_model.py,sha256=3OtmOfl5QEXz9049WaU7aq0fGPoigD9dbzCbUIKUz9c,2925
|
|
160
|
+
openapi/openapi-client/openapi_client/models/submit_coco_result.py,sha256=7LfDd-GRZx3xxOJED4MlSGfPsNbfteDs175wm44JoE8,2572
|
|
161
|
+
openapi/openapi-client/openapi_client/models/submit_password_reset_command.py,sha256=EcHK3K72_OrG0McyarmMhY3LHmz0opXMLxwDtPdn-mU,3404
|
|
162
|
+
openapi/openapi-client/openapi_client/models/text_asset.py,sha256=x-ohtTGBp3MKjhfT_2yqilurBdUgp_dfAQko0tLDMHc,3503
|
|
163
|
+
openapi/openapi-client/openapi_client/models/text_asset_model.py,sha256=PHXS66s-7YRAUtEEc3wpkodcKHzhaouHxoLV4eAW0VQ,3632
|
|
164
|
+
openapi/openapi-client/openapi_client/models/text_metadata.py,sha256=sppeAzUV9TfjRtiQyxZG8TxRO3NPnTLh-OQ172Xwxww,3423
|
|
165
|
+
openapi/openapi-client/openapi_client/models/transcription_metadata.py,sha256=mwFFeDCcE5vd5h5Lw86cLBju2w9iAvSI2GGoxIgFzmI,3531
|
|
166
|
+
openapi/openapi-client/openapi_client/models/transcription_metadata_input.py,sha256=OWpF2wbrawjsAZwad4C23DS0m62YaGnTMmpNV7Jh-dQ,3149
|
|
167
|
+
openapi/openapi-client/openapi_client/models/transcription_payload.py,sha256=Q2aiz5aiHS6Z7g3OzaCW0aiRReD-goa1mYckPqMNlOw,3633
|
|
168
|
+
openapi/openapi-client/openapi_client/models/transcription_rapid_blueprint.py,sha256=8Cq2SaI1zaoI3LXCPRU8M4eWRCHcwrb99xCuRXYaAoo,3016
|
|
169
|
+
openapi/openapi-client/openapi_client/models/transcription_truth.py,sha256=K6KWiRhJ-Ak5IoTgQaTBYuosQak_DaleEHLYsnXw8ew,3753
|
|
170
|
+
openapi/openapi-client/openapi_client/models/transcription_word.py,sha256=cX_ExJVYVOhi0z2tyOr15VuMIPdHec-8E48H4DG_DNQ,2621
|
|
171
|
+
openapi/openapi-client/openapi_client/models/unlock_order_result.py,sha256=xAyBfOotLJ3mgaIjin7k3b-KLLQLJDwuxMfhkUMJr1Y,2561
|
|
172
|
+
openapi/openapi-client/openapi_client/models/update_access_model.py,sha256=VtOJotdQck_AMYBhPhK73uVcwJScqdyKRYNallR6Vjg,2614
|
|
173
|
+
openapi/openapi-client/openapi_client/models/update_order_model.py,sha256=RUlxnzLqO6o-w5EEPb8wv1ANRKpkSbs8PhGM42T35uw,2570
|
|
174
|
+
openapi/openapi-client/openapi_client/models/update_workflow_config_model.py,sha256=T4CUitayOQrhaL6MjXidYGwW0QcNPbQehz81L_cYisc,3853
|
|
175
|
+
openapi/openapi-client/openapi_client/models/update_workflow_config_model_workflow_config.py,sha256=H9PRH3rL8TJv_VRs2hLfkLsZkLkYk_X2AbfU8KFJgpA,5796
|
|
176
|
+
openapi/openapi-client/openapi_client/models/upload_coco_result.py,sha256=1bO7PjM5Su1fQKzFqpe0-HuLYSDW1M4nms0mMKHqlF8,2761
|
|
177
|
+
openapi/openapi-client/openapi_client/models/upload_datapoints_result.py,sha256=13vMJEwgZNHRoZfnaO5-T7WA925YHQjlgOPnkl5pY4c,3117
|
|
178
|
+
openapi/openapi-client/openapi_client/models/upload_files_from_s3_bucket_model.py,sha256=VAzALEkDDixAvvQc-HW-Bc6Ql9mtQcX5mJ2PfHyHIvA,4653
|
|
179
|
+
openapi/openapi-client/openapi_client/models/upload_text_sources_to_dataset_model.py,sha256=H3EuJ5J1o-VOYDcqTks4LYJxWWTL15IhUKVgijFczR4,2860
|
|
180
|
+
openapi/openapi-client/openapi_client/models/validation_chance.py,sha256=noMnBjmt2MjJFpg6OPLfrEppoXmdv82fvCF8v6o4dL0,2838
|
|
181
|
+
openapi/openapi-client/openapi_client/models/validation_import_post_request_blueprint.py,sha256=9vb0KGG2Se-CFtdsoa7thd_R-g89KD5WncWs-kCrQFw,12281
|
|
182
|
+
openapi/openapi-client/openapi_client/models/validation_rapid_selection_config.py,sha256=T6RoGq_YSytk_TAcWsfOsU_7nfQlLmnO4Qn0CkQok7k,3219
|
|
183
|
+
openapi/openapi-client/openapi_client/models/validation_selection.py,sha256=_N_52PCxzYWcOXP751WD3UpWhBjX6gM5o0rRA8h1Qco,3496
|
|
184
|
+
openapi/openapi-client/openapi_client/models/validation_set.py,sha256=8ogEXVaKNB9pR2xuouf_Ckz_6-ryV0usGxx2qPqKjQk,3386
|
|
185
|
+
openapi/openapi-client/openapi_client/models/validation_set_overview_model.py,sha256=wlrjXg1dmlFmP8rIKDR88pGzpUEg15t8esr63BfYaaE,2693
|
|
186
|
+
openapi/openapi-client/openapi_client/models/validation_set_paged_result.py,sha256=myh6psmivJPudjy65_Buidu-6Htz3__5CVqCZE7mKa8,3472
|
|
187
|
+
openapi/openapi-client/openapi_client/models/workflow_aggregation_step_model.py,sha256=6LWLE1aY9P5u3YbbMZFcUDrREP8YiYypOw6Wrmxc0gs,4467
|
|
188
|
+
openapi/openapi-client/openapi_client/models/workflow_labeling_step_model.py,sha256=iXeIb78bdMhGFjnryqnUWneojxJi4xKbpiTLr2LrLhU,3173
|
|
189
|
+
openapi/openapi-client/openapi_client/models/workflow_split_model.py,sha256=t4AJrgMc3jcfO0yHyq8pl0zihtO1jv4vqSutPlpeG6A,4469
|
|
190
|
+
openapi/openapi-client/openapi_client/models/workflow_split_model_filter_configs_inner.py,sha256=tfkmVLz2YGqWYUAntM3N2vZyhrTLF4d69ZLuARX6iao,7432
|
|
191
|
+
openapi/openapi-client/openapi_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
192
|
+
openapi/openapi-client/openapi_client/rest.py,sha256=BiWIt4syOhjr9rYQ8fsKck8F_ot5KFPrgEc5kCWo9Uw,9414
|
|
193
|
+
rapidata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
194
|
+
rapidata/rapidata_client/__init__.py,sha256=S34OtjhVlHBYmruPZHpJ5C-pVflCHPwj7FHwhMN-YyY,61
|
|
195
|
+
rapidata/rapidata_client/country_codes/__init__.py,sha256=Y8qeG2IMjvMGvhaPydq0nhwRQHb6dQqilctlEXu0_PE,55
|
|
196
|
+
rapidata/rapidata_client/country_codes/country_codes.py,sha256=Q0HMX7uHJQDeLCFPP5bq4iYi6pgcDWEcl2ONGhjgoeU,286
|
|
197
|
+
rapidata/rapidata_client/feature_flags/__init__.py,sha256=BNG_NQ4CrrC61fAWliImr8r581pIvegrkepVVbxcBw8,55
|
|
198
|
+
rapidata/rapidata_client/feature_flags/feature_flags.py,sha256=FmMla6W4YAaIZ6D9ZtYPfDFAfoq6jHCoyYBalWJTAqY,709
|
|
199
|
+
rapidata/rapidata_client/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
200
|
+
rapidata/rapidata_client/metadata/base_metadata.py,sha256=0UK_5Sg2I1KYvFA6JMqt7utxC_Kp5wTQt3LrooVwcQE,175
|
|
201
|
+
rapidata/rapidata_client/metadata/transcription_metadata.py,sha256=GLuCDDsiMlyhJhsiLQ59khfUfX0wydOwhmyr0ZxdJns,605
|
|
202
|
+
rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
203
|
+
rapidata/rapidata_client/order/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
204
|
+
rapidata/rapidata_client/order/dataset/rapidata_dataset.py,sha256=K87LcmEtnpU9cQKY8UilGpQSZmGcE3F03pD5J6AaKOE,1985
|
|
205
|
+
rapidata/rapidata_client/order/dataset/validation_set_builder.py,sha256=ROgkDUcQ7uud11QKx0Ouu0uSRRInz1meMDlLC1Sijg8,6737
|
|
206
|
+
rapidata/rapidata_client/order/rapidata_order.py,sha256=euNFFvT2YpvmvTcj9CgKv80vhYCh3OU-6EuezmROP7M,2988
|
|
207
|
+
rapidata/rapidata_client/order/rapidata_order_builder.py,sha256=Jji647-bpOHMxCbj-mLB9cZ0bfrLZBj8VqRYRZGeNLI,6258
|
|
208
|
+
rapidata/rapidata_client/rapidata_client.py,sha256=cbn9d_kvOSLhgaGkUhQJ1lbjYfuw120Kw_x3Kyfzq4M,1607
|
|
209
|
+
rapidata/rapidata_client/referee/__init__.py,sha256=x0AxGCsR6TlDjfqQ00lB9V7QVS9EZCJzweNEIzx42PI,207
|
|
210
|
+
rapidata/rapidata_client/referee/base_referee.py,sha256=bMy7cw0a-pGNbFu6u_1_Jplu0A483Ubj4oDQzh8vu8k,493
|
|
211
|
+
rapidata/rapidata_client/referee/classify_early_stopping_referee.py,sha256=qrcJi4_6y1ogbRFC2CXbBtZ8iViKIDXrXCn2HRaSy18,750
|
|
212
|
+
rapidata/rapidata_client/referee/naive_referee.py,sha256=OrtC0oIRcZAWPGMrs3qCO2xLlN4RPMGoGFdIUeIw4kU,714
|
|
213
|
+
rapidata/rapidata_client/workflow/__init__.py,sha256=CDG8bKOBhLV4A0uBlqOd__79fH9KW3-UlZsR1RANLf0,250
|
|
214
|
+
rapidata/rapidata_client/workflow/base_workflow.py,sha256=elXVe5Ox_-onYFsucZeNaMH5armNx6_kjLfhI7j0FEg,1262
|
|
215
|
+
rapidata/rapidata_client/workflow/classify_workflow.py,sha256=zNaS-mwQj1Pa9tAIIcdQ7kJfGjFyM9Ln75PXMpl6vj4,1206
|
|
216
|
+
rapidata/rapidata_client/workflow/compare_workflow.py,sha256=TbFK9dw2JTIVDbxv0axf4B8hJtsfnemAwc4Na-_nw-k,959
|
|
217
|
+
rapidata/rapidata_client/workflow/free_text_workflow.py,sha256=mOdKUtdW_slsQJYVG9uaosZe1M01wbDI-XgbpapssUM,1044
|
|
218
|
+
rapidata/rapidata_client/workflow/transcription_workflow.py,sha256=2v8py-FTRTUBr76Sa2Kr3Cz-AyWGOu2iPPywfPV7LIE,839
|
|
219
|
+
rapidata/service/__init__.py,sha256=s9bS1AJZaWIhLtJX_ZA40_CK39rAAkwdAmymTMbeWl4,68
|
|
220
|
+
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
221
|
+
rapidata/service/openapi_service.py,sha256=RVL2Y9e9KFvmdUmr2HP45DHT8VWqC4iJWQVlEyuHIXc,1372
|
|
222
|
+
rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
223
|
+
rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
|
|
224
|
+
rapidata-0.1.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
225
|
+
rapidata-0.1.6.dist-info/METADATA,sha256=bkYMA-WaELbrma2E0hS2mWH_StGP4jiXi6-2qhFWwys,726
|
|
226
|
+
rapidata-0.1.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
227
|
+
rapidata-0.1.6.dist-info/RECORD,,
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
from datetime import datetime, timedelta
|
|
2
|
-
from typing import Any
|
|
3
|
-
import jwt
|
|
4
|
-
import requests
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class BaseRapidataAPIService:
|
|
8
|
-
|
|
9
|
-
def __init__(self, client_id: str, client_secret: str, endpoint: str):
|
|
10
|
-
self.client_id = client_id
|
|
11
|
-
self.client_secret = client_secret
|
|
12
|
-
self.endpoint = endpoint
|
|
13
|
-
self.auth_header = None
|
|
14
|
-
self.token = self._get_auth_token()
|
|
15
|
-
|
|
16
|
-
def _check_response(self, response: requests.Response):
|
|
17
|
-
if response.status_code != 200:
|
|
18
|
-
raise Exception(f"Error: {response.status_code} - {response.text}")
|
|
19
|
-
|
|
20
|
-
def _get_new_auth_token_if_outdated(self):
|
|
21
|
-
if not self.token or not self._is_token_valid():
|
|
22
|
-
self._get_auth_token()
|
|
23
|
-
|
|
24
|
-
def _is_token_valid(self, expiration_threshold: timedelta = timedelta(minutes=5)):
|
|
25
|
-
try:
|
|
26
|
-
payload = jwt.decode(self.token, options={"verify_signature": False}) # type: ignore
|
|
27
|
-
exp_timestamp = payload.get("exp")
|
|
28
|
-
if exp_timestamp:
|
|
29
|
-
expiration_time = datetime.fromtimestamp(exp_timestamp)
|
|
30
|
-
return datetime.now() + expiration_threshold <= expiration_time
|
|
31
|
-
except jwt.DecodeError:
|
|
32
|
-
return False
|
|
33
|
-
return False
|
|
34
|
-
|
|
35
|
-
def _get_auth_token(self):
|
|
36
|
-
url = f"{self.endpoint}/Identity/GetClientAuthToken"
|
|
37
|
-
params = {
|
|
38
|
-
"clientId": self.client_id,
|
|
39
|
-
}
|
|
40
|
-
headers = {"Authorization": f"Basic {self.client_secret}"}
|
|
41
|
-
response = requests.post(url, params=params, headers=headers)
|
|
42
|
-
self._check_response(response)
|
|
43
|
-
self.token = response.json().get("authToken")
|
|
44
|
-
if not self.token:
|
|
45
|
-
raise Exception("No token received")
|
|
46
|
-
self.auth_header = {"Authorization": f"Bearer {self.token}"}
|
|
47
|
-
|
|
48
|
-
def _post(
|
|
49
|
-
self,
|
|
50
|
-
url: str,
|
|
51
|
-
params: dict[str, Any] | None = None,
|
|
52
|
-
data: dict[str, Any] | None = None,
|
|
53
|
-
json: dict[str, Any] | None = None,
|
|
54
|
-
files: Any | None = None,
|
|
55
|
-
):
|
|
56
|
-
self._get_new_auth_token_if_outdated()
|
|
57
|
-
response = requests.post(
|
|
58
|
-
url,
|
|
59
|
-
params=params,
|
|
60
|
-
data=data,
|
|
61
|
-
json=json,
|
|
62
|
-
files=files,
|
|
63
|
-
headers=self.auth_header,
|
|
64
|
-
)
|
|
65
|
-
self._check_response(response)
|
|
66
|
-
return response
|
|
67
|
-
|
|
68
|
-
def _get(
|
|
69
|
-
self,
|
|
70
|
-
url: str,
|
|
71
|
-
params: dict[str, Any] | None = None,
|
|
72
|
-
):
|
|
73
|
-
self._get_new_auth_token_if_outdated()
|
|
74
|
-
response = requests.get(url, params=params, headers=self.auth_header)
|
|
75
|
-
self._check_response(response)
|
|
76
|
-
return response
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
from io import BufferedReader
|
|
2
|
-
from PIL import Image
|
|
3
|
-
from rapidata.service.rapidata_api_services.base_service import BaseRapidataAPIService
|
|
4
|
-
from rapidata.utils.image_utils import ImageUtils
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class DatasetService(BaseRapidataAPIService):
|
|
8
|
-
def __init__(self, client_id: str, client_secret: str, endpoint: str):
|
|
9
|
-
super().__init__(
|
|
10
|
-
client_id=client_id, client_secret=client_secret, endpoint=endpoint
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
def upload_text_sources(self, dataset_id: str, text_sources: list[str]):
|
|
14
|
-
url = f"{self.endpoint}/Dataset/UploadTextSourcesToDataset"
|
|
15
|
-
payload = {"datasetId": dataset_id, "textSources": text_sources}
|
|
16
|
-
|
|
17
|
-
response = self._post(url, json=payload)
|
|
18
|
-
|
|
19
|
-
return response
|
|
20
|
-
|
|
21
|
-
def upload_images(
|
|
22
|
-
self, dataset_id: str, images: list[Image.Image], image_names: list[str]
|
|
23
|
-
):
|
|
24
|
-
url = f"{self.endpoint}/Dataset/UploadImagesToDataset"
|
|
25
|
-
|
|
26
|
-
params = {"datasetId": dataset_id}
|
|
27
|
-
|
|
28
|
-
images_bytes: list[bytes] = [
|
|
29
|
-
ImageUtils.convert_PIL_image_to_bytes(image) for image in images
|
|
30
|
-
]
|
|
31
|
-
|
|
32
|
-
files = [
|
|
33
|
-
("files", (image_name, image_bytes))
|
|
34
|
-
for image_name, image_bytes in zip(image_names, images_bytes)
|
|
35
|
-
]
|
|
36
|
-
|
|
37
|
-
response = self._post(url, params=params, files=files)
|
|
38
|
-
|
|
39
|
-
return response
|
|
40
|
-
|
|
41
|
-
def upload_videos(
|
|
42
|
-
self, dataset_id: str, videos: list[BufferedReader], video_names: list[str]
|
|
43
|
-
):
|
|
44
|
-
url = f"{self.endpoint}/Dataset/UploadImagesToDataset"
|
|
45
|
-
|
|
46
|
-
params = {"datasetId": dataset_id}
|
|
47
|
-
|
|
48
|
-
files = [
|
|
49
|
-
("files", (video_name, video_bytes))
|
|
50
|
-
for video_name, video_bytes in zip(video_names, videos)
|
|
51
|
-
]
|
|
52
|
-
|
|
53
|
-
response = self._post(url, params=params, files=files)
|
|
54
|
-
|
|
55
|
-
return response
|
|
56
|
-
|
|
57
|
-
def upload_images_from_s3(
|
|
58
|
-
self,
|
|
59
|
-
dataset_id: str,
|
|
60
|
-
bucket_name: str,
|
|
61
|
-
region: str,
|
|
62
|
-
source_prefix: str,
|
|
63
|
-
access_key: str,
|
|
64
|
-
secret_key: str,
|
|
65
|
-
clear_dataset: bool = True,
|
|
66
|
-
):
|
|
67
|
-
url = f"{self.endpoint}/Dataset/UploadFilesFromS3"
|
|
68
|
-
|
|
69
|
-
payload = {
|
|
70
|
-
"datasetId": dataset_id,
|
|
71
|
-
"bucketName": bucket_name,
|
|
72
|
-
"region": region,
|
|
73
|
-
"sourcePrefix": source_prefix,
|
|
74
|
-
"accessKey": access_key,
|
|
75
|
-
"secretKey": secret_key,
|
|
76
|
-
"useCustomAwsCredentials": True,
|
|
77
|
-
"clearDataset": clear_dataset,
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
response = self._post(url, json=payload)
|
|
81
|
-
|
|
82
|
-
return response
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
from typing import Any
|
|
3
|
-
from rapidata.service.rapidata_api_services.base_service import BaseRapidataAPIService
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class OrderService(BaseRapidataAPIService):
|
|
7
|
-
def __init__(self, client_id: str, client_secret: str, endpoint: str):
|
|
8
|
-
super().__init__(
|
|
9
|
-
client_id=client_id, client_secret=client_secret, endpoint=endpoint
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
def create_order(self, name: str, workflow_config: dict[str, Any]) -> tuple[str, str]:
|
|
13
|
-
"""
|
|
14
|
-
order_name: name of the order that will be displayed in the Rapidata dashboard.
|
|
15
|
-
question: The question shown to the labeler in the rapid.
|
|
16
|
-
categories: The answer options, between which the labeler can choose.
|
|
17
|
-
target_country_codes: A list of two digit target country codes.
|
|
18
|
-
disable_translation: Per default, the question and categories get translated with DeepL (or Google Translate, if DeepL doesn't support a language). By setting this to `True`, the translation is disabled.
|
|
19
|
-
referee: The referee determines when the task is done. See above for the options.
|
|
20
|
-
"""
|
|
21
|
-
url = f"{self.endpoint}/Order/CreateDefaultOrder"
|
|
22
|
-
|
|
23
|
-
payload = {
|
|
24
|
-
"orderName": name,
|
|
25
|
-
"datasetName": f"{name} dataset",
|
|
26
|
-
"isPublic": False,
|
|
27
|
-
"workflowConfig": workflow_config,
|
|
28
|
-
"aggregatorType": "Classification",
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
response = self._post(url, json=payload)
|
|
32
|
-
|
|
33
|
-
return response.json()["orderId"], response.json()["datasetId"]
|
|
34
|
-
|
|
35
|
-
def submit(self, order_id: str):
|
|
36
|
-
url = f"{self.endpoint}/Order/Submit"
|
|
37
|
-
params = {"orderId": order_id}
|
|
38
|
-
|
|
39
|
-
submit_response = self._post(url, params=params)
|
|
40
|
-
|
|
41
|
-
return submit_response
|
|
42
|
-
|
|
43
|
-
def approve(self, order_id: str):
|
|
44
|
-
url = f"{self.endpoint}/Order/Approve"
|
|
45
|
-
params = {"orderId": order_id}
|
|
46
|
-
|
|
47
|
-
approve_response = self._post(url, params=params)
|
|
48
|
-
|
|
49
|
-
return approve_response
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
from rapidata.service.rapidata_api_services.base_service import BaseRapidataAPIService
|
|
2
|
-
from rapidata.service.rapidata_api_services.dataset_service import DatasetService
|
|
3
|
-
from rapidata.service.rapidata_api_services.order_service import OrderService
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class RapidataService(BaseRapidataAPIService):
|
|
7
|
-
def __init__(self, client_id: str, client_secret: str, endpoint: str):
|
|
8
|
-
super().__init__(client_id, client_secret, endpoint)
|
|
9
|
-
self._order_service = OrderService(client_id, client_secret, endpoint)
|
|
10
|
-
self._dataset_service = DatasetService(client_id, client_secret, endpoint)
|
|
11
|
-
|
|
12
|
-
@property
|
|
13
|
-
def order(self):
|
|
14
|
-
return self._order_service
|
|
15
|
-
|
|
16
|
-
@property
|
|
17
|
-
def dataset(self):
|
|
18
|
-
return self._dataset_service
|
rapidata-0.1.3.dist-info/RECORD
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
rapidata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
rapidata/rapidata_client/__init__.py,sha256=S34OtjhVlHBYmruPZHpJ5C-pVflCHPwj7FHwhMN-YyY,61
|
|
3
|
-
rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
rapidata/rapidata_client/order/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
rapidata/rapidata_client/order/dataset/rapidata_dataset.py,sha256=Nk5v0VBHM6j8V_7boh-tUgjxBL4i8OiX5VRyYRCqtaI,1071
|
|
6
|
-
rapidata/rapidata_client/order/rapidata_order.py,sha256=1FV1PtDdkWX2J12_d1Z5M-8-yXC2oXaxCn2un_yxaq8,2269
|
|
7
|
-
rapidata/rapidata_client/order/rapidata_order_builder.py,sha256=DTDGmT0RywkSU8r7wfAfOgkVGPnroROIFkNg4L1_2ls,1699
|
|
8
|
-
rapidata/rapidata_client/rapidata_client.py,sha256=I1s9ZCghxUvU5iZl_m9QBR8HJoNi92XhStXMED7smPc,1119
|
|
9
|
-
rapidata/rapidata_client/workflow/__init__.py,sha256=-xbTGFPdJH7SgTvJsGqHHjB3GFZOQyKH3amfcI4NVmA,362
|
|
10
|
-
rapidata/rapidata_client/workflow/base_workflow.py,sha256=wMAL4WTSvdpgqmcbtVAijzHg7p5okPU_6BePRhIQN6U,1151
|
|
11
|
-
rapidata/rapidata_client/workflow/classify_workflow.py,sha256=jzwhShNmvF_fEmKY82krhKK0ega-NFwrc8gcds90m5c,585
|
|
12
|
-
rapidata/rapidata_client/workflow/compare_workflow.py,sha256=4oB8GfFycJ72WMiYcgJaExLIeGSchU_LMoao3Wko00U,850
|
|
13
|
-
rapidata/rapidata_client/workflow/country_codes/__init__.py,sha256=Y8qeG2IMjvMGvhaPydq0nhwRQHb6dQqilctlEXu0_PE,55
|
|
14
|
-
rapidata/rapidata_client/workflow/country_codes/country_codes.py,sha256=Q0HMX7uHJQDeLCFPP5bq4iYi6pgcDWEcl2ONGhjgoeU,286
|
|
15
|
-
rapidata/rapidata_client/workflow/feature_flags/__init__.py,sha256=BNG_NQ4CrrC61fAWliImr8r581pIvegrkepVVbxcBw8,55
|
|
16
|
-
rapidata/rapidata_client/workflow/feature_flags/feature_flags.py,sha256=BqMwL2p8Da3woa4BjGbzB3tYh3xTDyjkwQip0NE87sk,676
|
|
17
|
-
rapidata/rapidata_client/workflow/free_text_workflow.py,sha256=96Jb4jC-iQtl0AGTyC9BkM64qjsKyzMoKXfMGaydExg,472
|
|
18
|
-
rapidata/rapidata_client/workflow/referee/__init__.py,sha256=x0AxGCsR6TlDjfqQ00lB9V7QVS9EZCJzweNEIzx42PI,207
|
|
19
|
-
rapidata/rapidata_client/workflow/referee/base_referee.py,sha256=JE5EIh7fva3CBMGQ6WcstP-llK1LD9TQLsaycvfZ4-k,338
|
|
20
|
-
rapidata/rapidata_client/workflow/referee/classify_early_stopping_referee.py,sha256=7nvf9gdPmjpR9c_RcC_2G1QFI1Q8TwLNJpJF8KOG_BU,759
|
|
21
|
-
rapidata/rapidata_client/workflow/referee/naive_referee.py,sha256=vLevsNBwKtCklUBABYUf54E7jixPYr1SbNGroCuwAu4,540
|
|
22
|
-
rapidata/service/__init__.py,sha256=2y7otliX28HSkZpHRnIaN_fO8ETUbooevdlZH4AF-YQ,155
|
|
23
|
-
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
24
|
-
rapidata/service/rapidata_api_services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
rapidata/service/rapidata_api_services/base_service.py,sha256=VwYHv8ted3NQtCrLUZ5_r4v7Vxt_IetRHTvh4ybWS10,2568
|
|
26
|
-
rapidata/service/rapidata_api_services/dataset_service.py,sha256=fT5IV_lD35gPKmRaXTYcOZ71TDv3Koyb5FKtK2fwLLA,2480
|
|
27
|
-
rapidata/service/rapidata_api_services/order_service.py,sha256=gytLUflH7fcOvH616TFJrHYs-hFpoGYn4HpIu8m-qlw,1919
|
|
28
|
-
rapidata/service/rapidata_api_services/rapidata_service.py,sha256=AvYMxjwgZHyQPMeqq_IKpmQX-NH_7yuWUyQjU_cJmAs,740
|
|
29
|
-
rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
|
|
31
|
-
rapidata-0.1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
32
|
-
rapidata-0.1.3.dist-info/METADATA,sha256=1rZzqdKlXgieBzplT-pnmiMqH6NddABe2phuW421Eow,722
|
|
33
|
-
rapidata-0.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
34
|
-
rapidata-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|