Skip to content

Commit 2beab37

Browse files
authored
Vb/refactor client plt 1385 2 (#1834)
1 parent b5fd958 commit 2beab37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+961
-681
lines changed

docs/labelbox/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Exceptions
22
===============================================================================================
33

4-
.. automodule:: labelbox.exceptions
4+
.. automodule:: lbox.exceptions
55
:members:
66
:show-inheritance:

docs/labelbox/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Labelbox Python SDK Documentation
4141
project
4242
project-model-config
4343
quality-mode
44+
request-client
4445
resource-tag
4546
review
4647
search-filters

docs/labelbox/request-client.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Request Client
2+
===============================================================================================
3+
4+
.. automodule:: lbox.request_client
5+
:members:
6+
:show-inheritance:

libs/labelbox/mypy.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ ignore_missing_imports = True
77
ignore_errors = True
88

99
[mypy-labelbox]
10-
ignore_errors = True
10+
ignore_errors = True
11+
12+
[mypy-lbox.exceptions]
13+
ignore_missing_imports = True

libs/labelbox/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212
"tqdm>=4.66.2",
1313
"geojson>=3.1.0",
1414
"mypy==1.10.1",
15+
"lbox-clients==1.0.0",
1516
]
1617
readme = "README.md"
1718
requires-python = ">=3.8"
@@ -95,6 +96,7 @@ integration = { cmd = "pytest tests/integration" }
9596
data = { cmd = "pytest tests/data" }
9697
rye-lint = "rye lint"
9798
rye-fmt-check = "rye fmt --check"
99+
MYPYPATH="../lbox-clients/src/"
98100
mypy-lint = "mypy src --pretty --show-error-codes --non-interactive --install-types"
99101
lint = { chain = ["rye-fmt-check", "mypy-lint", "rye-lint"] }
100102
test = { chain = ["lint", "unit", "integration"] }

libs/labelbox/src/labelbox/adv_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import io
22
import json
33
import logging
4-
from typing import Dict, Any, Optional, List, Callable
4+
from typing import Any, Callable, Dict, List, Optional
55
from urllib.parse import urlparse
6-
from labelbox.exceptions import LabelboxError
76

87
import requests
9-
from requests import Session, Response
8+
from lbox.exceptions import LabelboxError
9+
from requests import Response, Session
1010

1111
logger = logging.getLogger(__name__)
1212

0 commit comments

Comments
 (0)