Skip to content

Commit 3545ec1

Browse files
author
brandon
committed
Merge branch 'minimial_python_sdk' of github.com:groundlight/python-sdk into minimial_python_sdk
2 parents fa78d46 + 93d9b34 commit 3545ec1

6 files changed

Lines changed: 7 additions & 12 deletions

File tree

src/groundlight/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from groundlight_openapi_client.model.detector_group_request import DetectorGroupRequest
2727
from groundlight_openapi_client.model.image_query import ImageQuery
2828
from groundlight_openapi_client.model.label_value_request import LabelValueRequest
29-
from groundlight_openapi_client.model.mode_enum import ModeEnum
3029
from groundlight_openapi_client.model.multi_class_mode_configuration import MultiClassModeConfiguration
3130
from groundlight_openapi_client.model.paginated_detector_list import PaginatedDetectorList
3231
from groundlight_openapi_client.model.paginated_image_query_list import PaginatedImageQueryList
@@ -48,8 +47,8 @@
4847
sanitize_endpoint_url,
4948
)
5049
from groundlight.optional_imports import Image, np
51-
from groundlight_openapi_client.model.status_enum import StatusEnum
5250
from groundlight.splint import ModeEnumSplint
51+
5352
logger = logging.getLogger("groundlight.sdk")
5453

5554
# Set urllib3 request timeout to something modern and fast.

src/groundlight/experimental_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from typing import Any, Dict, List, Optional, Union
1414

1515
import requests
16-
from groundlight.splint import ModeEnumSplint
1716
from groundlight_openapi_client.api.actions_api import ActionsApi
1817
from groundlight_openapi_client.api.detector_reset_api import DetectorResetApi
1918
from groundlight_openapi_client.api.edge_api import EdgeApi
@@ -41,6 +40,7 @@
4140
from groundlight.images import parse_supported_image_types
4241
from groundlight.internalapi import _generate_request_id
4342
from groundlight.optional_imports import Image, np
43+
from groundlight.splint import ModeEnumSplint
4444

4545
from .client import DEFAULT_REQUEST_TIMEOUT, Groundlight, GroundlightClientError, logger
4646

src/groundlight/internalapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from datetime import datetime
21
import json
32
import logging
43
import os
54
import platform
65
import random
76
import time
87
import uuid
8+
from datetime import datetime
99
from enum import Enum
1010
from functools import wraps
1111
from typing import Callable, Optional

src/groundlight/splint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from enum import Enum
66

7+
78
class ModeEnumSplint(str, Enum):
89
BINARY = "BINARY"
910
COUNT = "COUNT"

test/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from groundlight_openapi_client.model.result_type_enum import ResultTypeEnum
99

1010

11-
12-
1311
def pytest_configure(config): # pylint: disable=unused-argument
1412
# Run environment check before tests
1513
gl = Groundlight()

test/integration/test_groundlight.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@
1515
from groundlight.optional_imports import *
1616
from groundlight.splint import ModeEnumSplint
1717
from groundlight.status_codes import is_user_error
18-
from ksuid import KsuidMs
19-
20-
from groundlight_openapi_client.model.detector import Detector
21-
from groundlight_openapi_client.model.image_query import ImageQuery
22-
from groundlight_openapi_client.model.mode_enum import ModeEnum
2318
from groundlight_openapi_client.model.binary_classification_result import BinaryClassificationResult
2419
from groundlight_openapi_client.model.bounding_box_result import BoundingBoxResult
2520
from groundlight_openapi_client.model.counting_result import CountingResult
21+
from groundlight_openapi_client.model.detector import Detector
22+
from groundlight_openapi_client.model.image_query import ImageQuery
2623
from groundlight_openapi_client.model.multi_classification_result import MultiClassificationResult
2724
from groundlight_openapi_client.model.paginated_detector_list import PaginatedDetectorList
2825
from groundlight_openapi_client.model.paginated_image_query_list import PaginatedImageQueryList
29-
26+
from ksuid import KsuidMs
3027

3128
DEFAULT_CONFIDENCE_THRESHOLD = 0.9
3229
IQ_IMPROVEMENT_THRESHOLD = 0.75

0 commit comments

Comments
 (0)