Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
956ba2c
remove docs and old examples
May 22, 2025
930f33e
Move experimental features into the main client
May 22, 2025
87a7296
Automatically reformatting code
May 22, 2025
ba58442
restoring changes accidentally brought in from another branch
May 22, 2025
ce03663
Merge branch 'brandon/counting_formal_release' of github.com:groundli…
May 22, 2025
5de38fa
Automatically reformatting code
May 22, 2025
cac0855
remove extraneous files pt2
May 22, 2025
4eafde1
remove other peripherals
May 22, 2025
2ab3b93
wip replacing pydantic objects
May 22, 2025
7ebee27
move api object init into main client
May 22, 2025
25b2a7b
Merge branch 'brandon/counting_formal_release' of github.com:groundli…
May 22, 2025
b92592c
Merge branch 'brandon/counting_formal_release' into minimial_python_sdk
May 22, 2025
791355f
wip
May 22, 2025
8c825fd
move import
May 22, 2025
524a665
Merge branch 'brandon/counting_formal_release' into minimial_python_sdk
May 22, 2025
d51754a
wip, client.py should? be updated
May 22, 2025
8181018
move more imports
May 22, 2025
a31fd78
making create_detector generic
May 22, 2025
55dd26c
makes create_detector generic
May 22, 2025
c92e726
Automatically reformatting code
May 22, 2025
a71f780
appease the linter
May 22, 2025
6cfe38f
Merge branch 'brandon/counting_formal_release' of github.com:groundli…
May 22, 2025
379b770
appease the linter
May 22, 2025
cb38c27
ok, even for a linter this is a bit much
May 22, 2025
20feac0
update docs
May 22, 2025
c222e52
Merge branch 'brandon/counting_formal_release' into minimial_python_sdk
May 22, 2025
0a1578c
fix merge
May 22, 2025
2b781e1
Automatically reformatting code
May 22, 2025
db990a9
fix imports
May 22, 2025
c0675b0
detector tests are passing
May 23, 2025
584f574
Merge branch 'minimial_python_sdk' of github.com:groundlight/python-s…
May 23, 2025
93d9b34
Automatically reformatting code
May 23, 2025
fa78d46
Merge branch 'main' into minimial_python_sdk
May 23, 2025
3545ec1
Merge branch 'minimial_python_sdk' of github.com:groundlight/python-s…
May 23, 2025
9506817
remove doc tests, adjust linter
May 23, 2025
afa82bf
fix workflow?
May 23, 2025
63f8c87
git workflows aren't working
May 23, 2025
d587803
issue with gha file?
May 23, 2025
a1a92ab
Automatically reformatting code
May 23, 2025
fffb7ed
fix linter errors
May 23, 2025
dd016c9
patch up iq_is_confident
May 23, 2025
32d50f0
Merge branch 'minimial_python_sdk' of github.com:groundlight/python-s…
May 23, 2025
803036b
undo non-backwards compatibile changes
May 23, 2025
52e0e7f
update spec manually
May 23, 2025
c09f089
upgrade to latest openapi generator
May 23, 2025
3e5284b
change requirements to allow pydantic 1
May 27, 2025
046ece0
update makefile, import statements, public api
May 27, 2025
4575e6a
run generator
May 27, 2025
1fef635
update imports, add aenum
May 27, 2025
ccbb285
fix whoami
May 28, 2025
a467034
remove debug line
May 28, 2025
9640e0d
remove cli tests
May 28, 2025
d806a35
several errors remain, putting aside for now
May 28, 2025
1775ad2
Automatically reformatting code
May 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Automatically reformatting code
  • Loading branch information
Auto-format Bot committed May 23, 2025
commit 93d9b34135052daf42314b26921776dbf669fccc
3 changes: 1 addition & 2 deletions src/groundlight/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from groundlight_openapi_client.model.detector_group_request import DetectorGroupRequest
from groundlight_openapi_client.model.image_query import ImageQuery
from groundlight_openapi_client.model.label_value_request import LabelValueRequest
from groundlight_openapi_client.model.mode_enum import ModeEnum
from groundlight_openapi_client.model.multi_class_mode_configuration import MultiClassModeConfiguration
from groundlight_openapi_client.model.paginated_detector_list import PaginatedDetectorList
from groundlight_openapi_client.model.paginated_image_query_list import PaginatedImageQueryList
Expand All @@ -46,8 +45,8 @@
sanitize_endpoint_url,
)
from groundlight.optional_imports import Image, np
from groundlight_openapi_client.model.status_enum import StatusEnum
from groundlight.splint import ModeEnumSplint

logger = logging.getLogger("groundlight.sdk")

# Set urllib3 request timeout to something modern and fast.
Expand Down
2 changes: 1 addition & 1 deletion src/groundlight/experimental_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from typing import Any, Dict, List, Optional, Union

import requests
from groundlight.splint import ModeEnumSplint
from groundlight_openapi_client.api.actions_api import ActionsApi
from groundlight_openapi_client.api.detector_reset_api import DetectorResetApi
from groundlight_openapi_client.api.edge_api import EdgeApi
Expand Down Expand Up @@ -41,6 +40,7 @@
from groundlight.images import parse_supported_image_types
from groundlight.internalapi import _generate_request_id
from groundlight.optional_imports import Image, np
from groundlight.splint import ModeEnumSplint

from .client import DEFAULT_REQUEST_TIMEOUT, Groundlight, GroundlightClientError, logger

Expand Down
2 changes: 1 addition & 1 deletion src/groundlight/internalapi.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from datetime import datetime
import json
import logging
import os
import platform
import random
import time
import uuid
from datetime import datetime
from enum import Enum
from functools import wraps
from typing import Callable, Optional
Expand Down
1 change: 1 addition & 0 deletions src/groundlight/splint.py

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't yet figure out a good way to access the generated enums, the play in the future is probably to modify the OpenAPI generator mustache templates to create this file for us, but just for this moment it'll prove the concept to write this manually

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from enum import Enum


class ModeEnumSplint(str, Enum):
BINARY = "BINARY"
COUNT = "COUNT"
Expand Down
2 changes: 0 additions & 2 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from groundlight_openapi_client.model.result_type_enum import ResultTypeEnum




def pytest_configure(config): # pylint: disable=unused-argument
# Run environment check before tests
gl = Groundlight()
Expand Down
9 changes: 3 additions & 6 deletions test/integration/test_groundlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@
from groundlight.optional_imports import *
from groundlight.splint import ModeEnumSplint
from groundlight.status_codes import is_user_error
from ksuid import KsuidMs

from groundlight_openapi_client.model.detector import Detector
from groundlight_openapi_client.model.image_query import ImageQuery
from groundlight_openapi_client.model.mode_enum import ModeEnum
from groundlight_openapi_client.model.binary_classification_result import BinaryClassificationResult
from groundlight_openapi_client.model.bounding_box_result import BoundingBoxResult
from groundlight_openapi_client.model.counting_result import CountingResult
from groundlight_openapi_client.model.detector import Detector
from groundlight_openapi_client.model.image_query import ImageQuery
from groundlight_openapi_client.model.multi_classification_result import MultiClassificationResult
from groundlight_openapi_client.model.paginated_detector_list import PaginatedDetectorList
from groundlight_openapi_client.model.paginated_image_query_list import PaginatedImageQueryList

from ksuid import KsuidMs

DEFAULT_CONFIDENCE_THRESHOLD = 0.9
IQ_IMPROVEMENT_THRESHOLD = 0.75
Expand Down