label-studio-sdk 1.0.4__tar.gz → 1.0.7__tar.gz
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 label-studio-sdk might be problematic. Click here for more details.
- label_studio_sdk-1.0.7/LICENSE +201 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/PKG-INFO +20 -4
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/README.md +15 -1
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/pyproject.toml +4 -3
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/__init__.py +70 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/_extensions/eval/categorical.py +83 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py +35 -17
- label_studio_sdk-1.0.7/src/label_studio_sdk/annotations/__init__.py +5 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/annotations/client.py +109 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/annotations/types/__init__.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/annotations/types/annotations_create_bulk_response_item.py +29 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/base_client.py +9 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/comments/client.py +512 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/converter.py +2 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/imports/coco.py +14 -13
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/utils.py +72 -3
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/client_wrapper.py +1 -1
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/files/client.py +26 -16
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/interface.py +38 -5
- label_studio_sdk-1.0.7/src/label_studio_sdk/model_providers/client.py +190 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/client.py +32 -16
- label_studio_sdk-1.0.7/src/label_studio_sdk/projects/exports/__init__.py +2 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/exports/client.py +133 -40
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/__init__.py +21 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/client.py +862 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/indicators/__init__.py +2 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/indicators/client.py +194 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/runs/__init__.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/runs/client.py +354 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/runs/types/__init__.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/runs/types/runs_list_request_project_subset.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/types/__init__.py +15 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/types/prompts_batch_failed_predictions_request_failed_predictions_item.py +42 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/types/prompts_batch_failed_predictions_response.py +29 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/types/prompts_batch_predictions_request_results_item.py +62 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/types/prompts_batch_predictions_response.py +29 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/versions/__init__.py +2 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/prompts/versions/client.py +921 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/__init__.py +52 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/comment.py +39 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/comment_created_by.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/inference_run.py +43 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/inference_run_created_by.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/inference_run_organization.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/inference_run_project_subset.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/inference_run_status.py +7 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/key_indicator_value.py +30 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/key_indicators.py +7 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/key_indicators_item.py +51 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/key_indicators_item_additional_kpis_item.py +37 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/key_indicators_item_extra_kpis_item.py +37 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/model_provider_connection.py +41 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/model_provider_connection_created_by.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/model_provider_connection_organization.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/model_provider_connection_provider.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/model_provider_connection_scope.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt.py +79 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt_created_by.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt_organization.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt_version.py +41 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt_version_created_by.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt_version_organization.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/prompt_version_provider.py +5 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/refined_prompt_response.py +64 -0
- label_studio_sdk-1.0.7/src/label_studio_sdk/types/refined_prompt_response_refinement_status.py +7 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/webhooks/client.py +245 -36
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/core/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/core/label_config.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/exceptions.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/params.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/etl/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/etl/beam.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/etl/example.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/etl/registry.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/postprocessing/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/label_studio_tools/postprocessing/video.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_extensions/pager_ext.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/exceptions.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/project.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/schema/label_config_schema.json +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/users.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/utils.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/_legacy/workspaces.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_filters.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_filters_conjunction.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_filters_items_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_filters_items_item_filter.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_filters_items_item_operator.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_filters_items_item_value.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_id.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_ordering_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_selected_items.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_selected_items_excluded.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/actions/types/actions_create_request_selected_items_included.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/client.py +0 -0
- {label_studio_sdk-1.0.4/src/label_studio_sdk/annotations → label_studio_sdk-1.0.7/src/label_studio_sdk/comments}/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/audio.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/brush.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/exports/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/exports/csv.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/exports/csv2.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/funsd.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/imports/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/imports/colors.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/imports/label_config.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/imports/pathtrack.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/imports/yolo.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/converter/main.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/api_error.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/datetime_utils.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/file.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/http_client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/jsonable_encoder.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/pagination.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/pydantic_utilities.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/query_encoder.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/remove_none_from_dict.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/core/request_options.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/data_manager.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/environment.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/errors/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/errors/bad_request_error.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/errors/internal_server_error.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/azure/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/azure/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/azure/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/azure/types/azure_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/azure/types/azure_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/gcs/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/gcs/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/gcs/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/gcs/types/gcs_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/gcs/types/gcs_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/local/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/local/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/local/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/local/types/local_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/local/types/local_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/redis/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/redis/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/redis/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/redis/types/redis_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/redis/types/redis_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3/types/s3create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3/types/s3update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3s/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/s3s/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/export_storage/types/export_storage_list_types_response_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/files/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/azure/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/azure/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/azure/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/azure/types/azure_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/azure/types/azure_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/gcs/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/gcs/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/gcs/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/gcs/types/gcs_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/gcs/types/gcs_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/local/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/local/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/local/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/local/types/local_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/local/types/local_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/redis/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/redis/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/redis/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/redis/types/redis_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/redis/types/redis_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3/types/s3create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3/types/s3update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3s/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/s3s/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/import_storage/types/import_storage_list_types_response_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/base.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/control_tags.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/create.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/data_examples.json +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/label_tags.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/object_tags.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/objects.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/label_interface/region.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/ml_create_request_auth_method.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/ml_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/ml_create_response_auth_method.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/ml_update_request_auth_method.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/ml_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/ml/types/ml_update_response_auth_method.py +0 -0
- {label_studio_sdk-1.0.4/src/label_studio_sdk/predictions → label_studio_sdk-1.0.7/src/label_studio_sdk/model_providers}/__init__.py +0 -0
- {label_studio_sdk-1.0.4/src/label_studio_sdk/projects/exports → label_studio_sdk-1.0.7/src/label_studio_sdk/predictions}/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/predictions/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/client_ext.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/types/projects_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/types/projects_import_tasks_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/types/projects_list_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/projects/types/projects_update_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/py.typed +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/tasks/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/tasks/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/tasks/client_ext.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/tasks/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/tasks/types/tasks_list_request_fields.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/tasks/types/tasks_list_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/annotation.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/annotation_filter_options.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/annotation_last_action.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/annotations_dm_field.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/annotations_dm_field_last_action.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/azure_blob_export_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/azure_blob_export_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/azure_blob_import_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/azure_blob_import_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/base_task.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/base_task_file_upload.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/base_task_updated_by.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/base_user.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/converted_format.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/converted_format_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/data_manager_task_serializer.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/data_manager_task_serializer_annotators_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/data_manager_task_serializer_drafts_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/data_manager_task_serializer_predictions_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/export.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/export_convert.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/export_create.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/export_create_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/export_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/file_upload.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/filter.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/filter_group.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/gcs_export_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/gcs_export_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/gcs_import_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/gcs_import_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/local_files_export_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/local_files_export_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/local_files_import_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/local_files_import_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/ml_backend.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/ml_backend_auth_method.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/ml_backend_state.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/prediction.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/project.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/project_import.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/project_import_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/project_label_config.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/project_sampling.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/project_skip_queue.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/redis_export_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/redis_export_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/redis_import_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/redis_import_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3export_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3export_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3import_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3import_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3s_export_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3s_import_storage.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/s3s_import_storage_status.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/serialization_option.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/serialization_options.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/task.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/task_annotators_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/task_filter_options.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/user_simple.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/view.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/webhook.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/webhook_actions_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/webhook_serializer_for_update.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/webhook_serializer_for_update_actions_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/types/workspace.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/users/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/users/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/users/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/users/types/users_get_token_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/users/types/users_reset_token_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/version.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_filters.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_filters_conjunction.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_filters_items_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_filters_items_item_filter.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_filters_items_item_operator.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_filters_items_item_value.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_create_request_data_ordering_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_filters.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_filters_conjunction.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_filters_items_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_filters_items_item_filter.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_filters_items_item_operator.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_filters_items_item_value.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/views/types/views_update_request_data_ordering_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/webhooks/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/webhooks/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/webhooks/types/webhooks_update_request_actions_item.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/client.py +20 -20
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/members/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/members/client.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/members/types/__init__.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/members/types/members_create_response.py +0 -0
- {label_studio_sdk-1.0.4 → label_studio_sdk-1.0.7}/src/label_studio_sdk/workspaces/members/types/members_list_response_item.py +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Heartex, Inc
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: label-studio-sdk
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary:
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -16,15 +16,17 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
21
|
Classifier: Typing :: Typed
|
|
21
22
|
Requires-Dist: Pillow (>=10.0.1)
|
|
22
23
|
Requires-Dist: appdirs (>=1.4.3)
|
|
23
24
|
Requires-Dist: httpx (>=0.21.2)
|
|
24
25
|
Requires-Dist: ijson (>=3.2.3)
|
|
25
|
-
Requires-Dist: jsonschema (
|
|
26
|
+
Requires-Dist: jsonschema (>=4.23.0)
|
|
26
27
|
Requires-Dist: lxml (>=4.2.5)
|
|
27
|
-
Requires-Dist: nltk (
|
|
28
|
+
Requires-Dist: nltk (>=3.9.1,<4.0.0)
|
|
29
|
+
Requires-Dist: numpy (<2.0.0)
|
|
28
30
|
Requires-Dist: pandas (>=0.24.0)
|
|
29
31
|
Requires-Dist: pydantic (>=1.9.2)
|
|
30
32
|
Requires-Dist: requests (>=2.22.0)
|
|
@@ -53,7 +55,7 @@ Description-Content-Type: text/markdown
|
|
|
53
55
|
>
|
|
54
56
|
> OR you can change your import statements as follows:
|
|
55
57
|
> ```python
|
|
56
|
-
> from label_studio_sdk
|
|
58
|
+
> from label_studio_sdk import Client
|
|
57
59
|
> from label_studio_sdk.data_manager import Filters, Column, Operator, Type
|
|
58
60
|
> from label_studio_sdk._legacy import Project
|
|
59
61
|
> ```
|
|
@@ -179,9 +181,23 @@ ls = LabelStudio(
|
|
|
179
181
|
)
|
|
180
182
|
```
|
|
181
183
|
|
|
184
|
+
## Enterprise features
|
|
185
|
+
|
|
186
|
+
### Create comments
|
|
187
|
+
|
|
188
|
+
```python
|
|
189
|
+
comment = ls.comments.create(
|
|
190
|
+
project=project.id,
|
|
191
|
+
annotation=annotation.id,
|
|
192
|
+
text="Comment text"
|
|
193
|
+
)
|
|
194
|
+
```
|
|
195
|
+
|
|
182
196
|
<!-- Begin Contributing, generated by Fern -->
|
|
183
197
|
# Contributing
|
|
184
198
|
|
|
199
|
+
Please follow [this guide to contribute to the SDK](https://github.com/HumanSignal/label-studio-client-generator?tab=readme-ov-file#how-to-contribute)
|
|
200
|
+
|
|
185
201
|
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
186
202
|
Additions made directly to this library would have to be moved over to our generation code,
|
|
187
203
|
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
>
|
|
18
18
|
> OR you can change your import statements as follows:
|
|
19
19
|
> ```python
|
|
20
|
-
> from label_studio_sdk
|
|
20
|
+
> from label_studio_sdk import Client
|
|
21
21
|
> from label_studio_sdk.data_manager import Filters, Column, Operator, Type
|
|
22
22
|
> from label_studio_sdk._legacy import Project
|
|
23
23
|
> ```
|
|
@@ -143,9 +143,23 @@ ls = LabelStudio(
|
|
|
143
143
|
)
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
+
## Enterprise features
|
|
147
|
+
|
|
148
|
+
### Create comments
|
|
149
|
+
|
|
150
|
+
```python
|
|
151
|
+
comment = ls.comments.create(
|
|
152
|
+
project=project.id,
|
|
153
|
+
annotation=annotation.id,
|
|
154
|
+
text="Comment text"
|
|
155
|
+
)
|
|
156
|
+
```
|
|
157
|
+
|
|
146
158
|
<!-- Begin Contributing, generated by Fern -->
|
|
147
159
|
# Contributing
|
|
148
160
|
|
|
161
|
+
Please follow [this guide to contribute to the SDK](https://github.com/HumanSignal/label-studio-client-generator?tab=readme-ov-file#how-to-contribute)
|
|
162
|
+
|
|
149
163
|
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
150
164
|
Additions made directly to this library would have to be moved over to our generation code,
|
|
151
165
|
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "label-studio-sdk"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.7"
|
|
4
4
|
description = ""
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = []
|
|
@@ -36,9 +36,10 @@ Pillow = ">=10.0.1"
|
|
|
36
36
|
appdirs = ">=1.4.3"
|
|
37
37
|
httpx = ">=0.21.2"
|
|
38
38
|
ijson = ">=3.2.3"
|
|
39
|
-
jsonschema = "
|
|
39
|
+
jsonschema = ">=4.23.0"
|
|
40
40
|
lxml = ">=4.2.5"
|
|
41
|
-
nltk = "3.
|
|
41
|
+
nltk = "^3.9.1"
|
|
42
|
+
numpy = "<2.0.0"
|
|
42
43
|
pandas = ">=0.24.0"
|
|
43
44
|
pydantic = ">= 1.9.2"
|
|
44
45
|
requests = ">=2.22.0"
|
|
@@ -14,6 +14,8 @@ from .types import (
|
|
|
14
14
|
BaseTaskFileUpload,
|
|
15
15
|
BaseTaskUpdatedBy,
|
|
16
16
|
BaseUser,
|
|
17
|
+
Comment,
|
|
18
|
+
CommentCreatedBy,
|
|
17
19
|
ConvertedFormat,
|
|
18
20
|
ConvertedFormatStatus,
|
|
19
21
|
DataManagerTaskSerializer,
|
|
@@ -32,6 +34,16 @@ from .types import (
|
|
|
32
34
|
GcsExportStorageStatus,
|
|
33
35
|
GcsImportStorage,
|
|
34
36
|
GcsImportStorageStatus,
|
|
37
|
+
InferenceRun,
|
|
38
|
+
InferenceRunCreatedBy,
|
|
39
|
+
InferenceRunOrganization,
|
|
40
|
+
InferenceRunProjectSubset,
|
|
41
|
+
InferenceRunStatus,
|
|
42
|
+
KeyIndicatorValue,
|
|
43
|
+
KeyIndicators,
|
|
44
|
+
KeyIndicatorsItem,
|
|
45
|
+
KeyIndicatorsItemAdditionalKpisItem,
|
|
46
|
+
KeyIndicatorsItemExtraKpisItem,
|
|
35
47
|
LocalFilesExportStorage,
|
|
36
48
|
LocalFilesExportStorageStatus,
|
|
37
49
|
LocalFilesImportStorage,
|
|
@@ -39,6 +51,11 @@ from .types import (
|
|
|
39
51
|
MlBackend,
|
|
40
52
|
MlBackendAuthMethod,
|
|
41
53
|
MlBackendState,
|
|
54
|
+
ModelProviderConnection,
|
|
55
|
+
ModelProviderConnectionCreatedBy,
|
|
56
|
+
ModelProviderConnectionOrganization,
|
|
57
|
+
ModelProviderConnectionProvider,
|
|
58
|
+
ModelProviderConnectionScope,
|
|
42
59
|
Prediction,
|
|
43
60
|
Project,
|
|
44
61
|
ProjectImport,
|
|
@@ -46,10 +63,19 @@ from .types import (
|
|
|
46
63
|
ProjectLabelConfig,
|
|
47
64
|
ProjectSampling,
|
|
48
65
|
ProjectSkipQueue,
|
|
66
|
+
Prompt,
|
|
67
|
+
PromptCreatedBy,
|
|
68
|
+
PromptOrganization,
|
|
69
|
+
PromptVersion,
|
|
70
|
+
PromptVersionCreatedBy,
|
|
71
|
+
PromptVersionOrganization,
|
|
72
|
+
PromptVersionProvider,
|
|
49
73
|
RedisExportStorage,
|
|
50
74
|
RedisExportStorageStatus,
|
|
51
75
|
RedisImportStorage,
|
|
52
76
|
RedisImportStorageStatus,
|
|
77
|
+
RefinedPromptResponse,
|
|
78
|
+
RefinedPromptResponseRefinementStatus,
|
|
53
79
|
S3ExportStorage,
|
|
54
80
|
S3ExportStorageStatus,
|
|
55
81
|
S3ImportStorage,
|
|
@@ -74,12 +100,15 @@ from .errors import BadRequestError, InternalServerError
|
|
|
74
100
|
from . import (
|
|
75
101
|
actions,
|
|
76
102
|
annotations,
|
|
103
|
+
comments,
|
|
77
104
|
export_storage,
|
|
78
105
|
files,
|
|
79
106
|
import_storage,
|
|
80
107
|
ml,
|
|
108
|
+
model_providers,
|
|
81
109
|
predictions,
|
|
82
110
|
projects,
|
|
111
|
+
prompts,
|
|
83
112
|
tasks,
|
|
84
113
|
users,
|
|
85
114
|
views,
|
|
@@ -100,6 +129,7 @@ from .actions import (
|
|
|
100
129
|
ActionsCreateRequestSelectedItemsExcluded,
|
|
101
130
|
ActionsCreateRequestSelectedItemsIncluded,
|
|
102
131
|
)
|
|
132
|
+
from .annotations import AnnotationsCreateBulkResponseItem
|
|
103
133
|
from .environment import LabelStudioEnvironment
|
|
104
134
|
from .export_storage import ExportStorageListTypesResponseItem
|
|
105
135
|
from .import_storage import ImportStorageListTypesResponseItem
|
|
@@ -112,6 +142,12 @@ from .ml import (
|
|
|
112
142
|
MlUpdateResponseAuthMethod,
|
|
113
143
|
)
|
|
114
144
|
from .projects import ProjectsCreateResponse, ProjectsImportTasksResponse, ProjectsListResponse, ProjectsUpdateResponse
|
|
145
|
+
from .prompts import (
|
|
146
|
+
PromptsBatchFailedPredictionsRequestFailedPredictionsItem,
|
|
147
|
+
PromptsBatchFailedPredictionsResponse,
|
|
148
|
+
PromptsBatchPredictionsRequestResultsItem,
|
|
149
|
+
PromptsBatchPredictionsResponse,
|
|
150
|
+
)
|
|
115
151
|
from .tasks import TasksListRequestFields, TasksListResponse
|
|
116
152
|
from .users import UsersGetTokenResponse, UsersResetTokenResponse
|
|
117
153
|
from .version import __version__
|
|
@@ -150,6 +186,7 @@ __all__ = [
|
|
|
150
186
|
"Annotation",
|
|
151
187
|
"AnnotationFilterOptions",
|
|
152
188
|
"AnnotationLastAction",
|
|
189
|
+
"AnnotationsCreateBulkResponseItem",
|
|
153
190
|
"AnnotationsDmField",
|
|
154
191
|
"AnnotationsDmFieldLastAction",
|
|
155
192
|
"AzureBlobExportStorage",
|
|
@@ -162,6 +199,8 @@ __all__ = [
|
|
|
162
199
|
"BaseTaskUpdatedBy",
|
|
163
200
|
"BaseUser",
|
|
164
201
|
"Client",
|
|
202
|
+
"Comment",
|
|
203
|
+
"CommentCreatedBy",
|
|
165
204
|
"ConvertedFormat",
|
|
166
205
|
"ConvertedFormatStatus",
|
|
167
206
|
"DataManagerTaskSerializer",
|
|
@@ -182,7 +221,17 @@ __all__ = [
|
|
|
182
221
|
"GcsImportStorage",
|
|
183
222
|
"GcsImportStorageStatus",
|
|
184
223
|
"ImportStorageListTypesResponseItem",
|
|
224
|
+
"InferenceRun",
|
|
225
|
+
"InferenceRunCreatedBy",
|
|
226
|
+
"InferenceRunOrganization",
|
|
227
|
+
"InferenceRunProjectSubset",
|
|
228
|
+
"InferenceRunStatus",
|
|
185
229
|
"InternalServerError",
|
|
230
|
+
"KeyIndicatorValue",
|
|
231
|
+
"KeyIndicators",
|
|
232
|
+
"KeyIndicatorsItem",
|
|
233
|
+
"KeyIndicatorsItemAdditionalKpisItem",
|
|
234
|
+
"KeyIndicatorsItemExtraKpisItem",
|
|
186
235
|
"LabelStudioEnvironment",
|
|
187
236
|
"LocalFilesExportStorage",
|
|
188
237
|
"LocalFilesExportStorageStatus",
|
|
@@ -197,6 +246,11 @@ __all__ = [
|
|
|
197
246
|
"MlUpdateRequestAuthMethod",
|
|
198
247
|
"MlUpdateResponse",
|
|
199
248
|
"MlUpdateResponseAuthMethod",
|
|
249
|
+
"ModelProviderConnection",
|
|
250
|
+
"ModelProviderConnectionCreatedBy",
|
|
251
|
+
"ModelProviderConnectionOrganization",
|
|
252
|
+
"ModelProviderConnectionProvider",
|
|
253
|
+
"ModelProviderConnectionScope",
|
|
200
254
|
"Prediction",
|
|
201
255
|
"Project",
|
|
202
256
|
"ProjectImport",
|
|
@@ -208,10 +262,23 @@ __all__ = [
|
|
|
208
262
|
"ProjectsImportTasksResponse",
|
|
209
263
|
"ProjectsListResponse",
|
|
210
264
|
"ProjectsUpdateResponse",
|
|
265
|
+
"Prompt",
|
|
266
|
+
"PromptCreatedBy",
|
|
267
|
+
"PromptOrganization",
|
|
268
|
+
"PromptVersion",
|
|
269
|
+
"PromptVersionCreatedBy",
|
|
270
|
+
"PromptVersionOrganization",
|
|
271
|
+
"PromptVersionProvider",
|
|
272
|
+
"PromptsBatchFailedPredictionsRequestFailedPredictionsItem",
|
|
273
|
+
"PromptsBatchFailedPredictionsResponse",
|
|
274
|
+
"PromptsBatchPredictionsRequestResultsItem",
|
|
275
|
+
"PromptsBatchPredictionsResponse",
|
|
211
276
|
"RedisExportStorage",
|
|
212
277
|
"RedisExportStorageStatus",
|
|
213
278
|
"RedisImportStorage",
|
|
214
279
|
"RedisImportStorageStatus",
|
|
280
|
+
"RefinedPromptResponse",
|
|
281
|
+
"RefinedPromptResponseRefinementStatus",
|
|
215
282
|
"S3ExportStorage",
|
|
216
283
|
"S3ExportStorageStatus",
|
|
217
284
|
"S3ImportStorage",
|
|
@@ -255,12 +322,15 @@ __all__ = [
|
|
|
255
322
|
"__version__",
|
|
256
323
|
"actions",
|
|
257
324
|
"annotations",
|
|
325
|
+
"comments",
|
|
258
326
|
"export_storage",
|
|
259
327
|
"files",
|
|
260
328
|
"import_storage",
|
|
261
329
|
"ml",
|
|
330
|
+
"model_providers",
|
|
262
331
|
"predictions",
|
|
263
332
|
"projects",
|
|
333
|
+
"prompts",
|
|
264
334
|
"tasks",
|
|
265
335
|
"users",
|
|
266
336
|
"views",
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
from typing import List, Dict, Iterable
|
|
3
|
+
|
|
4
|
+
logger = logging.getLogger(__name__)
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
# TODO: after python 3.8 support is dropped (Oct'24), remove try-except block
|
|
8
|
+
from sklearn.metrics import precision_recall_fscore_support
|
|
9
|
+
except ImportError:
|
|
10
|
+
logger.warning('scikit-learn is not installed. Please install scikit-learn to use this module.')
|
|
11
|
+
precision_recall_fscore_support = None
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_single_choice(annotation: Dict):
|
|
15
|
+
"""
|
|
16
|
+
Get the single choice from the annotation.
|
|
17
|
+
|
|
18
|
+
Args:
|
|
19
|
+
annotation: Annotation dict
|
|
20
|
+
|
|
21
|
+
Returns:
|
|
22
|
+
Single choice
|
|
23
|
+
"""
|
|
24
|
+
maybe_choice = next((r['value']['choices'][0] for r in annotation['result'] if r['type'] == 'choices'), None)
|
|
25
|
+
if maybe_choice:
|
|
26
|
+
return maybe_choice
|
|
27
|
+
raise NotImplementedError('Only single choice is supported')
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def get_precision_recall_f1_per_choice(annotations: Iterable[Dict], predictions: Iterable[Dict]) -> Dict:
|
|
31
|
+
"""
|
|
32
|
+
Given the iterator over annotations and predictions, calculate precision, recall, and F1 per choice.
|
|
33
|
+
Each annotation and prediction follows the format of the Label Studio output.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
annotations: Iterable of annotation dicts
|
|
37
|
+
predictions: Iterable of prediction dicts
|
|
38
|
+
|
|
39
|
+
Returns:
|
|
40
|
+
Dict of the following format:
|
|
41
|
+
{
|
|
42
|
+
'precision': {
|
|
43
|
+
'choice1': 0.5,
|
|
44
|
+
'choice2': 0.7,
|
|
45
|
+
...
|
|
46
|
+
},
|
|
47
|
+
'recall': {
|
|
48
|
+
'choice1': 0.5,
|
|
49
|
+
'choice2': 0.7,
|
|
50
|
+
...
|
|
51
|
+
},
|
|
52
|
+
'f1': {
|
|
53
|
+
'choice1': 0.5,
|
|
54
|
+
'choice2': 0.7,
|
|
55
|
+
...
|
|
56
|
+
},
|
|
57
|
+
'support': {
|
|
58
|
+
'choice1': 10,
|
|
59
|
+
'choice2': 20,
|
|
60
|
+
...
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
if precision_recall_fscore_support is None:
|
|
66
|
+
raise ImportError('scikit-learn is not installed. Please install scikit-learn to use this module.')
|
|
67
|
+
|
|
68
|
+
annotation_choices = [_get_single_choice(annotation) for annotation in annotations]
|
|
69
|
+
prediction_choices = [_get_single_choice(prediction) for prediction in predictions]
|
|
70
|
+
# get unique choices names
|
|
71
|
+
unique_choices = sorted(set(annotation_choices + prediction_choices))
|
|
72
|
+
|
|
73
|
+
metrics_per_choice = precision_recall_fscore_support(
|
|
74
|
+
annotation_choices, prediction_choices,
|
|
75
|
+
average=None, labels=unique_choices)
|
|
76
|
+
|
|
77
|
+
results = {}
|
|
78
|
+
for metric_name, metric_per_choice in zip(['precision', 'recall', 'f1', 'support'], metrics_per_choice):
|
|
79
|
+
results[metric_name] = {}
|
|
80
|
+
for choice, metric in zip(unique_choices, metric_per_choice):
|
|
81
|
+
results[metric_name][choice] = metric
|
|
82
|
+
|
|
83
|
+
return results
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import logging
|
|
2
|
-
import io
|
|
3
|
-
import shutil
|
|
4
|
-
import urllib
|
|
5
1
|
import hashlib
|
|
6
|
-
import
|
|
2
|
+
import io
|
|
3
|
+
import logging
|
|
7
4
|
import os
|
|
8
|
-
|
|
9
|
-
from appdirs import user_cache_dir, user_data_dir
|
|
10
|
-
from urllib.parse import urlparse, urljoin
|
|
5
|
+
import shutil
|
|
11
6
|
from contextlib import contextmanager
|
|
12
7
|
from tempfile import mkdtemp
|
|
8
|
+
from urllib.parse import urlparse
|
|
9
|
+
|
|
10
|
+
import requests
|
|
11
|
+
from appdirs import user_cache_dir, user_data_dir
|
|
13
12
|
|
|
14
13
|
from label_studio_sdk._extensions.label_studio_tools.core.utils.params import get_env
|
|
15
14
|
|
|
@@ -17,6 +16,7 @@ _DIR_APP_NAME = "label-studio"
|
|
|
17
16
|
LOCAL_FILES_DOCUMENT_ROOT = get_env(
|
|
18
17
|
"LOCAL_FILES_DOCUMENT_ROOT", default=os.path.abspath(os.sep)
|
|
19
18
|
)
|
|
19
|
+
VERIFY_SSL = get_env("VERIFY_SSL", default=True, is_bool=True)
|
|
20
20
|
|
|
21
21
|
logger = logging.getLogger(__name__)
|
|
22
22
|
|
|
@@ -80,6 +80,13 @@ def get_local_path(
|
|
|
80
80
|
f"`localhost` is not accessible inside of docker containers. "
|
|
81
81
|
f"You can check your IP with utilities like `ifconfig` and set it as LABEL_STUDIO_URL."
|
|
82
82
|
)
|
|
83
|
+
if hostname and not (
|
|
84
|
+
hostname.startswith("http://") or hostname.startswith("https://")
|
|
85
|
+
):
|
|
86
|
+
raise ValueError(
|
|
87
|
+
f"Invalid hostname in LABEL_STUDIO_URL: {hostname}. "
|
|
88
|
+
"Please provide full URL starting with protocol (http:// or https://)."
|
|
89
|
+
)
|
|
83
90
|
|
|
84
91
|
# fix file upload url
|
|
85
92
|
if url.startswith("upload") or url.startswith("/upload"):
|
|
@@ -180,13 +187,17 @@ def download_and_cache(
|
|
|
180
187
|
# File specified by remote URL - download and cache it
|
|
181
188
|
cache_dir = cache_dir or get_cache_dir()
|
|
182
189
|
parsed_url = urlparse(url)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
|
|
191
|
+
# local storage: /data/local-files?d=dir/1.jpg => 1.jpg
|
|
192
|
+
if is_local_storage_file:
|
|
193
|
+
url_filename = os.path.basename(url.split('?d=')[1])
|
|
194
|
+
# cloud storage: s3://bucket/1.jpg => 1.jpg
|
|
195
|
+
elif is_cloud_storage_file:
|
|
196
|
+
url_filename = os.path.basename(url)
|
|
197
|
+
# all others: /some/url/1.jpg?expire=xxx => 1.jpg
|
|
198
|
+
else:
|
|
199
|
+
url_filename = os.path.basename(parsed_url.path)
|
|
200
|
+
|
|
190
201
|
url_hash = hashlib.md5(url.encode()).hexdigest()[:8]
|
|
191
202
|
filepath = os.path.join(cache_dir, url_hash + "__" + url_filename)
|
|
192
203
|
|
|
@@ -205,8 +216,15 @@ def download_and_cache(
|
|
|
205
216
|
):
|
|
206
217
|
headers["Authorization"] = "Token " + access_token
|
|
207
218
|
logger.debug("Authorization token is used for download_and_cache")
|
|
208
|
-
|
|
209
|
-
|
|
219
|
+
try:
|
|
220
|
+
r = requests.get(url, stream=True, headers=headers, verify=VERIFY_SSL)
|
|
221
|
+
r.raise_for_status()
|
|
222
|
+
except requests.exceptions.SSLError as e:
|
|
223
|
+
logger.error(
|
|
224
|
+
f"SSL error during requests.get('{url}'): {e}\n"
|
|
225
|
+
f"Try to set VERIFY_SSL=False in environment variables to bypass SSL verification."
|
|
226
|
+
)
|
|
227
|
+
raise e
|
|
210
228
|
with io.open(filepath, mode="wb") as fout:
|
|
211
229
|
fout.write(r.content)
|
|
212
230
|
return filepath
|