visionai-sdk-python 2.2.0.dev5__py3-none-any.whl → 2.2.0.dev7__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.
@@ -11,6 +11,29 @@ if TYPE_CHECKING:
11
11
  from .auth.credentials import AsyncClientCredentials, ClientCredentials
12
12
 
13
13
 
14
+ _TRANSPORT_DEFAULTS = {
15
+ "verify_ssl": True,
16
+ "timeout": 10.0,
17
+ "max_connections": 100,
18
+ "max_keepalive_connections": 20,
19
+ }
20
+
21
+
22
+ def _transport_settings(injected: object | None, **given: object) -> dict:
23
+ """The settings for the httpx client the SDK builds, or an error with an injected one.
24
+
25
+ An injected client brings its own TLS, timeout and limits, so none of these
26
+ may be given with it: silently ignoring ``verify_ssl=False`` would surprise.
27
+ """
28
+ passed = {name: value for name, value in given.items() if value is not None}
29
+ if injected is not None and passed:
30
+ raise ValueError(
31
+ "the injected http client has its own verify, timeout and limits; "
32
+ f"do not pass {', '.join(passed)} with it"
33
+ )
34
+ return {**_TRANSPORT_DEFAULTS, **passed}
35
+
36
+
14
37
  class _BaseClient:
15
38
  """Base class for VisionAI SDK clients.
16
39
 
@@ -79,8 +102,12 @@ class _BaseClient:
79
102
 
80
103
  @property
81
104
  def credential(self) -> "ClientCredentials | AsyncClientCredentials | None":
82
- """The credential this client was built with, for callers that need the
83
- raw token themselves (a WebSocket upgrade, another HTTP library)."""
105
+ """The credential currently in use, or None.
106
+
107
+ Set by ``credential=`` or by ``auth.get_access_token()``; dropped by
108
+ ``login()`` / ``set_token()``, whose token then takes over. For callers
109
+ that need the raw token themselves (a WebSocket upgrade, another HTTP
110
+ library): ``credential.get_token()`` / ``credential.invalidate(token)``."""
84
111
  return self._credential
85
112
 
86
113
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  import httpx
2
2
 
3
- from ._base import _BaseClient
3
+ from ._base import _BaseClient, _transport_settings
4
4
  from ._request_attribution import merge_request_attribution
5
5
  from .auth.async_resource import AsyncAuthResource
6
6
  from .auth.credentials import AsyncClientCredentials
@@ -14,32 +14,49 @@ class AsyncClient(_BaseClient):
14
14
  auth_url: str,
15
15
  vlm_url: str | None = None,
16
16
  allowed_issuers: list[str] | None = None,
17
- verify_ssl: bool = True,
18
- timeout: float = 10.0,
19
- max_connections: int = 100,
20
- max_keepalive_connections: int = 20,
17
+ verify_ssl: bool | None = None,
18
+ timeout: float | None = None,
19
+ max_connections: int | None = None,
20
+ max_keepalive_connections: int | None = None,
21
21
  credential: AsyncClientCredentials | None = None,
22
22
  http_client: httpx.AsyncClient | None = None,
23
23
  ) -> None:
24
- """See ``_BaseClient``; ``http_client`` is an httpx.AsyncClient to send through
25
- (tests, shared pools); the client closes only the one it created."""
26
- super().__init__(
27
- auth_url=auth_url,
28
- vlm_url=vlm_url,
29
- allowed_issuers=allowed_issuers,
24
+ """See ``_BaseClient``. ``http_client`` is an httpx.AsyncClient to send through
25
+ (tests, shared pools): its own TLS, timeout and limits apply, so
26
+ ``verify_ssl`` / ``timeout`` / ``max_connections`` /
27
+ ``max_keepalive_connections`` cannot be given with it (``ValueError``);
28
+ the client closes only the one it created."""
29
+ if credential is not None and not isinstance(
30
+ credential, AsyncClientCredentials
31
+ ):
32
+ raise TypeError(
33
+ "AsyncClient takes an AsyncClientCredentials; Client takes a ClientCredentials"
34
+ )
35
+ settings = _transport_settings(
36
+ http_client,
30
37
  verify_ssl=verify_ssl,
31
38
  timeout=timeout,
32
39
  max_connections=max_connections,
33
40
  max_keepalive_connections=max_keepalive_connections,
41
+ )
42
+ super().__init__(
43
+ auth_url=auth_url,
44
+ vlm_url=vlm_url,
45
+ allowed_issuers=allowed_issuers,
34
46
  credential=credential,
47
+ **settings,
35
48
  )
36
- self._client = http_client or httpx.AsyncClient(
37
- verify=self.verify_ssl,
38
- timeout=self.timeout,
39
- limits=httpx.Limits(
40
- max_connections=self.max_connections,
41
- max_keepalive_connections=self.max_keepalive_connections,
42
- ),
49
+ self._client = (
50
+ http_client
51
+ if http_client is not None
52
+ else httpx.AsyncClient(
53
+ verify=self.verify_ssl,
54
+ timeout=self.timeout,
55
+ limits=httpx.Limits(
56
+ max_connections=self.max_connections,
57
+ max_keepalive_connections=self.max_keepalive_connections,
58
+ ),
59
+ )
43
60
  )
44
61
  self._http_owner = http_client is None # a client we built is ours to close
45
62
  # Register the different function resource
@@ -19,10 +19,12 @@ from typing import Any
19
19
 
20
20
  import httpx
21
21
 
22
- from .._base import _BaseClient
22
+ from .._base import _BaseClient, _transport_settings
23
23
  from .._request_attribution import merge_request_attribution
24
24
  from ..endpoints import AuthEndpoint
25
25
  from ..exceptions import (
26
+ AuthenticationError,
27
+ PermissionDeniedError,
26
28
  RateLimitedError,
27
29
  VisionaiSDKError,
28
30
  from_transport_error,
@@ -37,6 +39,8 @@ logger = logging.getLogger(__name__)
37
39
  REFRESH_BUFFER_S = 300
38
40
  # After a 429 no mint is tried for this long.
39
41
  RATE_LIMIT_COOLDOWN_S = 3600
42
+ # After a failed refresh the current token is served and no mint is tried for this long.
43
+ REFRESH_RETRY_S = 30
40
44
  # A 401 on a token minted less than this long ago does not replace it.
41
45
  REPLACE_COOLDOWN_S = 30 * 60
42
46
 
@@ -73,12 +77,13 @@ class _Credentials:
73
77
  self._url = _BaseClient._build_url(self.auth_url, AuthEndpoint.CLIENT_TOKEN)
74
78
  self._current: AccessToken | None = None # the token this credential holds
75
79
  self._blocked_until = 0.0
80
+ self._retry_after = 0.0 # set by a failed refresh
76
81
  self._minting = False # a mint is in flight (set under the lock)
77
82
 
78
83
  def is_for(self, client_id: str, client_secret: str) -> bool:
79
84
  """True when this credential was built for exactly these client credentials."""
80
85
  return self.client_id == client_id.strip() and hmac.compare_digest(
81
- self._client_secret, client_secret
86
+ self._client_secret.encode(), client_secret.encode()
82
87
  )
83
88
 
84
89
  def _fresh(self) -> AccessToken | None:
@@ -129,12 +134,22 @@ class _Credentials:
129
134
  return self._current
130
135
 
131
136
  def _after_failed_refresh(self, error: VisionaiSDKError) -> AccessToken:
132
- """A refresh failed: keep serving the current token while it is valid, else raise."""
137
+ """A refresh failed: keep serving the current token while it is valid, else raise.
138
+
139
+ No mint is tried again for ``REFRESH_RETRY_S``. A refusal (401 / 403) is kept
140
+ too, because the issued token stays valid until it expires; it is logged as an
141
+ error since only the client credentials can be wrong.
142
+ """
133
143
  valid = self._valid()
134
144
  if valid is None:
135
145
  raise error
136
- logger.warning(
137
- "token refresh failed; using the current token until it expires",
146
+ self._retry_after = _now() + REFRESH_RETRY_S
147
+ refused = isinstance(error, (AuthenticationError, PermissionDeniedError))
148
+ logger.log(
149
+ logging.ERROR if refused else logging.WARNING,
150
+ "token refresh refused; check the client credentials"
151
+ if refused
152
+ else "token refresh failed; using the current token until it expires",
138
153
  extra={
139
154
  "client_id": self.client_id,
140
155
  "error": str(error),
@@ -143,8 +158,8 @@ class _Credentials:
143
158
  )
144
159
  return valid
145
160
 
146
- def invalidate(self, token: str) -> bool:
147
- """Report a 401 for ``token``. True: dropped, so the next ``get_token()`` mints.
161
+ def _invalidate(self, token: str) -> bool:
162
+ """Behind both ``invalidate()``; the sync class calls it under its lock.
148
163
 
149
164
  A late report for a token no longer held changes nothing. A token minted
150
165
  less than ``REPLACE_COOLDOWN_S`` ago is kept: a 401 that soon is a client or
@@ -152,14 +167,16 @@ class _Credentials:
152
167
  often a persistent 401 can mint. While a mint is in flight the report is
153
168
  already being acted on.
154
169
  """
155
- if self._current is None or token != self._current.token:
170
+ current = self._current
171
+ if current is None or token != current.token:
156
172
  return False
157
173
  if self._minting:
158
174
  return True
159
- if _now() - self._current.issued_at < REPLACE_COOLDOWN_S:
175
+ age = _now() - current.issued_at
176
+ if age < REPLACE_COOLDOWN_S:
160
177
  logger.warning(
161
178
  "401 on a token minted %d s ago; keeping it until the cooldown ends",
162
- int(_now() - self._current.issued_at),
179
+ int(age),
163
180
  extra={"client_id": self.client_id},
164
181
  )
165
182
  return False
@@ -181,19 +198,35 @@ class ClientCredentials(_Credentials):
181
198
  client_secret: str,
182
199
  *,
183
200
  http: httpx.Client | None = None,
184
- verify_ssl: bool = True,
185
- timeout: float = 10.0,
201
+ verify_ssl: bool | None = None,
202
+ timeout: float | None = None,
186
203
  ) -> None:
187
204
  super().__init__(auth_url, client_id, client_secret)
188
- self._http = http or httpx.Client(verify=verify_ssl, timeout=timeout)
205
+ own = _transport_settings(http, verify_ssl=verify_ssl, timeout=timeout)
206
+ self._http = (
207
+ http
208
+ if http is not None
209
+ else httpx.Client(verify=own["verify_ssl"], timeout=own["timeout"])
210
+ )
189
211
  self._http_owner = http is None # a client we built is ours to close
190
212
  self._lock = threading.Lock()
191
213
 
214
+ def invalidate(self, token: str) -> bool:
215
+ """Report a 401 for ``token``. True: dropped, so the next ``get_token()`` mints.
216
+
217
+ Under the credential's lock: a report that arrives while another thread
218
+ mints waits for it, then finds the fresh token and leaves it alone.
219
+ """
220
+ with self._lock:
221
+ return self._invalidate(token)
222
+
192
223
  def get_token(self, *, force_refresh: bool = False) -> AccessToken:
193
224
  """The cached token, refreshed shortly before it expires.
194
225
 
195
226
  ``force_refresh=True`` mints even while the cached token is fresh. A refresh
196
- that fails keeps serving the current token while Platform still accepts it.
227
+ that fails keeps serving the current token while Platform still accepts it
228
+ and is not retried for ``REFRESH_RETRY_S``; a refused one (401 / 403) is kept
229
+ too, logged as an error.
197
230
 
198
231
  Raises:
199
232
  AuthenticationError: Platform refused the client credentials (401).
@@ -206,6 +239,10 @@ class ClientCredentials(_Credentials):
206
239
  fresh = self._fresh()
207
240
  if fresh is not None:
208
241
  return fresh
242
+ if _now() < self._retry_after:
243
+ valid = self._valid()
244
+ if valid is not None:
245
+ return valid # a refresh just failed; not again yet
209
246
  self._minting = True
210
247
  try:
211
248
  kwargs = self._begin_mint()
@@ -248,14 +285,27 @@ class AsyncClientCredentials(_Credentials):
248
285
  client_secret: str,
249
286
  *,
250
287
  http: httpx.AsyncClient | None = None,
251
- verify_ssl: bool = True,
252
- timeout: float = 10.0,
288
+ verify_ssl: bool | None = None,
289
+ timeout: float | None = None,
253
290
  ) -> None:
254
291
  super().__init__(auth_url, client_id, client_secret)
255
- self._http = http or httpx.AsyncClient(verify=verify_ssl, timeout=timeout)
292
+ own = _transport_settings(http, verify_ssl=verify_ssl, timeout=timeout)
293
+ self._http = (
294
+ http
295
+ if http is not None
296
+ else httpx.AsyncClient(verify=own["verify_ssl"], timeout=own["timeout"])
297
+ )
256
298
  self._http_owner = http is None # a client we built is ours to close
257
299
  self._lock = asyncio.Lock()
258
300
 
301
+ def invalidate(self, token: str) -> bool:
302
+ """Report a 401 for ``token``. True: dropped, so the next ``get_token()`` mints.
303
+
304
+ No lock: there is no ``await`` here, so the check and the drop are one step
305
+ on the event loop; a mint in flight shows through ``_minting``.
306
+ """
307
+ return self._invalidate(token)
308
+
259
309
  async def get_token(self, *, force_refresh: bool = False) -> AccessToken:
260
310
  """The cached token, refreshed shortly before it expires.
261
311
 
@@ -267,6 +317,10 @@ class AsyncClientCredentials(_Credentials):
267
317
  fresh = self._fresh()
268
318
  if fresh is not None:
269
319
  return fresh
320
+ if _now() < self._retry_after:
321
+ valid = self._valid()
322
+ if valid is not None:
323
+ return valid # a refresh just failed; not again yet
270
324
  self._minting = True
271
325
  try:
272
326
  kwargs = self._begin_mint()
@@ -1,6 +1,6 @@
1
1
  import httpx
2
2
 
3
- from ._base import _BaseClient
3
+ from ._base import _BaseClient, _transport_settings
4
4
  from ._request_attribution import merge_request_attribution
5
5
  from .auth.credentials import ClientCredentials
6
6
  from .auth.resource import AuthResource
@@ -14,32 +14,47 @@ class Client(_BaseClient):
14
14
  auth_url: str,
15
15
  vlm_url: str | None = None,
16
16
  allowed_issuers: list[str] | None = None,
17
- verify_ssl: bool = True,
18
- timeout: float = 10.0,
19
- max_connections: int = 100,
20
- max_keepalive_connections: int = 20,
17
+ verify_ssl: bool | None = None,
18
+ timeout: float | None = None,
19
+ max_connections: int | None = None,
20
+ max_keepalive_connections: int | None = None,
21
21
  credential: ClientCredentials | None = None,
22
22
  http_client: httpx.Client | None = None,
23
23
  ) -> None:
24
- """See ``_BaseClient``; ``http_client`` is an httpx.Client to send through
25
- (tests, shared pools); the client closes only the one it created."""
26
- super().__init__(
27
- auth_url=auth_url,
28
- vlm_url=vlm_url,
29
- allowed_issuers=allowed_issuers,
24
+ """See ``_BaseClient``. ``http_client`` is an httpx.Client to send through
25
+ (tests, shared pools): its own TLS, timeout and limits apply, so
26
+ ``verify_ssl`` / ``timeout`` / ``max_connections`` /
27
+ ``max_keepalive_connections`` cannot be given with it (``ValueError``);
28
+ the client closes only the one it created."""
29
+ if credential is not None and not isinstance(credential, ClientCredentials):
30
+ raise TypeError(
31
+ "Client takes a ClientCredentials; AsyncClient takes an AsyncClientCredentials"
32
+ )
33
+ settings = _transport_settings(
34
+ http_client,
30
35
  verify_ssl=verify_ssl,
31
36
  timeout=timeout,
32
37
  max_connections=max_connections,
33
38
  max_keepalive_connections=max_keepalive_connections,
39
+ )
40
+ super().__init__(
41
+ auth_url=auth_url,
42
+ vlm_url=vlm_url,
43
+ allowed_issuers=allowed_issuers,
34
44
  credential=credential,
45
+ **settings,
35
46
  )
36
- self._client = http_client or httpx.Client(
37
- verify=self.verify_ssl,
38
- timeout=self.timeout,
39
- limits=httpx.Limits(
40
- max_connections=self.max_connections,
41
- max_keepalive_connections=self.max_keepalive_connections,
42
- ),
47
+ self._client = (
48
+ http_client
49
+ if http_client is not None
50
+ else httpx.Client(
51
+ verify=self.verify_ssl,
52
+ timeout=self.timeout,
53
+ limits=httpx.Limits(
54
+ max_connections=self.max_connections,
55
+ max_keepalive_connections=self.max_keepalive_connections,
56
+ ),
57
+ )
43
58
  )
44
59
  self._http_owner = http_client is None # a client we built is ours to close
45
60
  # Register the different function resource
@@ -83,7 +98,7 @@ class Client(_BaseClient):
83
98
  if self._credential is None or not self._resendable(kwargs):
84
99
  raise
85
100
  self._credential.invalidate(token)
86
- replacement = (self._credential.get_token()).token
101
+ replacement = self._credential.get_token().token
87
102
  if replacement == token:
88
103
  raise
89
104
  return self._request(method, url, **self._with_auth(kwargs, replacement))
@@ -124,7 +139,7 @@ class Client(_BaseClient):
124
139
  AuthenticationError: If no token is available or token expired without credentials.
125
140
  """
126
141
  if self._credential is not None:
127
- return (self._credential.get_token()).token
142
+ return self._credential.get_token().token
128
143
  if self._access_token is None:
129
144
  raise AuthenticationError(
130
145
  "Not authenticated. Call login() or get_access_token() first."
@@ -1,7 +1,8 @@
1
1
  """The platform-relay wire protocol, shared by platform-relay and platform-edge-agent.
2
2
 
3
- Internal to the platform; the spec is platform-service's
4
- ``docs/adr/0001-relay-protocol.md``. See :mod:`.protocol`.
3
+ Internal to the platform. The wire format is specified in ``docs/relay-protocol.md``
4
+ of this repository; platform-service's ``docs/adr/0001-relay-protocol.md`` records the
5
+ decisions around it. See :mod:`.protocol`.
5
6
  """
6
7
 
7
8
  from .protocol import (
@@ -1,4 +1,4 @@
1
- """The ADR's JSON examples, shipped so every implementation tests against the same frames.
1
+ """The wire-format spec's JSON examples, shipped so every implementation tests against the same frames.
2
2
 
3
3
  ``example("register")`` is the parsed object, ``example_text("register")`` the wire text.
4
4
  """
@@ -19,7 +19,7 @@ NAMES = (
19
19
 
20
20
 
21
21
  def example_text(name: str) -> str:
22
- """One ADR example as the text that goes over the wire."""
22
+ """One spec example as the text that goes over the wire."""
23
23
  return (files(__package__) / f"{name}.json").read_text(encoding="utf-8")
24
24
 
25
25
 
@@ -1,7 +1,7 @@
1
1
  """Wire format between platform-relay and platform-edge-agent.
2
2
 
3
- The spec is platform-service's ``docs/adr/0001-relay-protocol.md``; this module is
4
- the one implementation both sides import. Frames are JSON objects told apart by
3
+ The spec is ``docs/relay-protocol.md`` in this repository (the decisions behind it:
4
+ platform-service's ADR 0001); this module is the one implementation both sides import. Frames are JSON objects told apart by
5
5
  ``type``. Receivers ignore unknown fields, and the string-typed ``reason`` /
6
6
  ``code`` fields accept values they do not know, so either side can be upgraded
7
7
  first.
@@ -71,8 +71,7 @@ class Frame(BaseModel):
71
71
  class ModelEntry(Frame):
72
72
  name: str
73
73
  version: str
74
- # Required by the ADR. A receiver counts None as 0 and logs it: the sender has a bug.
75
- replicas: int | None = Field(default=None, ge=0)
74
+ replicas: int = Field(ge=0)
76
75
 
77
76
 
78
77
  class WorkspaceEntry(Frame):
@@ -160,19 +159,27 @@ class FrameTooLarge(ValueError):
160
159
  self.size = size
161
160
 
162
161
 
163
- def parse_agent_frame(text: str) -> AgentFrame:
164
- """A frame the relay received from an agent."""
165
- return _parse(text, _agent_frame)
162
+ def parse_agent_frame(message: str | bytes | None) -> AgentFrame:
163
+ """A frame the relay received from an agent.
164
+
165
+ ``message`` is what the WebSocket library handed over: ``str`` for a text frame,
166
+ ``bytes`` (or Starlette's ``None``) for a binary one, which the protocol does
167
+ not use and is an ``InvalidFrame`` like any other unreadable frame.
168
+ """
169
+ return _parse(message, _agent_frame)
166
170
 
167
171
 
168
- def parse_relay_frame(text: str) -> RelayFrame:
169
- """A frame the agent received from the relay."""
170
- return _parse(text, _relay_frame)
172
+ def parse_relay_frame(message: str | bytes | None) -> RelayFrame:
173
+ """A frame the agent received from the relay; see ``parse_agent_frame``."""
174
+ return _parse(message, _relay_frame)
171
175
 
172
176
 
173
- def _parse(text: str, adapter: TypeAdapter):
177
+ def _parse(message: str | bytes | None, adapter: TypeAdapter):
178
+ if not isinstance(message, str):
179
+ # json.loads() would happily read JSON out of a binary frame; say no once here.
180
+ raise InvalidFrame("binary frames are not used")
174
181
  try:
175
- data = json.loads(text)
182
+ data = json.loads(message)
176
183
  except ValueError:
177
184
  raise InvalidFrame("frame is not JSON") from None
178
185
  if not isinstance(data, dict):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: visionai-sdk-python
3
- Version: 2.2.0.dev5
3
+ Version: 2.2.0.dev7
4
4
  Summary: VisionAI SDK for Python
5
5
  Author-email: Tony Yang <tonyyang@linkervision.com>
6
6
  Requires-Python: >=3.11
@@ -153,6 +153,13 @@ token = cred.get_token().token # for a WebSocket upgrade or another lib
153
153
  nodes = client.request("GET", "https://vs.example.com/mgmt/nodes").json()
154
154
  ```
155
155
 
156
+ `request()` raises on a non-2xx like the resource methods (`AuthenticationError`,
157
+ `ClientError`, `ServerError`, ...), unlike plain httpx, and sends the token to whatever
158
+ host `url` names, so `url` comes from configuration or code, never from a caller. A
159
+ client built with `http_client=` (or a credential with `http=`) uses that client's TLS,
160
+ timeout and limits; passing `verify_ssl` / `timeout` / `max_connections` /
161
+ `max_keepalive_connections` with it raises `ValueError`.
162
+
156
163
  A mint is a Platform round trip and, on sites that cap client tokens, a scarce one:
157
164
  concurrent callers share one mint, a refresh that fails keeps the current token while
158
165
  Platform still accepts it, a 401 on a token minted more than 30 minutes ago buys a
@@ -169,11 +176,14 @@ authentication wins. `vlm_url` is optional for clients that only authenticate.
169
176
 
170
177
  `visionai_sdk_python.relay` holds the wire format between platform-relay and
171
178
  platform-edge-agent: the frame models, the constants and `parse_agent_frame()` /
172
- `parse_relay_frame()` / `dump_frame()` (which refuses a frame over `MAX_FRAME_BYTES`). The spec is platform-service's
173
- `docs/adr/0001-relay-protocol.md`; both sides import this module instead of keeping a
174
- copy. The ADR's JSON examples ship with it (`visionai_sdk_python.relay.examples`:
175
- `example(name)` / `example_text(name)`), so every implementation tests against the same
176
- frames. It is internal to the platform and not a public API.
179
+ `parse_relay_frame()` (text frames only: `bytes` or `None` is an `InvalidFrame`) /
180
+ `dump_frame()` (which refuses a frame over `MAX_FRAME_BYTES`). The spec is
181
+ [`docs/relay-protocol.md`](docs/relay-protocol.md); both sides import this module instead of
182
+ keeping a copy, and a protocol change edits the spec and the module in one PR. The spec's
183
+ JSON examples ship with it (`visionai_sdk_python.relay.examples`: `example(name)` /
184
+ `example_text(name)`), so every implementation tests against the same frames. The decisions
185
+ behind the protocol are platform-service's `docs/adr/0001-relay-protocol.md`. It is internal
186
+ to the platform and not a public API.
177
187
 
178
188
  ## VLM Inference
179
189
 
@@ -1,10 +1,10 @@
1
1
  visionai_sdk_python/__init__.py,sha256=EITFK0aQPAQN3BSnwTfrPAt1iu50pmuhXl0-jBSbiD4,774
2
- visionai_sdk_python/_base.py,sha256=q8Ybwk9uEdaAFh85IRCHvsSpXEvYFosFYGhJAeQNIr4,9390
2
+ visionai_sdk_python/_base.py,sha256=0AbDyYRFyaoNQav3fINLjlvwBPkAaHhCi3s5I18bemA,10419
3
3
  visionai_sdk_python/_jwt_verifier.py,sha256=h4CAK1iiDAJ-oKnXrLbCJw5rWcsVe94QNY12ne1Wzto,8442
4
4
  visionai_sdk_python/_request_attribution.py,sha256=zQk_bSLsu1RTp1Fe3MGUUX8YRzq3iqfBTmhhjM7BuRU,1907
5
5
  visionai_sdk_python/_source_header.py,sha256=DWiR-TGclET4UrqmAEO7bYPtf9XuLSE4FGQjZIgVWiY,5133
6
- visionai_sdk_python/async_client.py,sha256=T_VyweNx6_u5BgQ21B5EMoj1U2LZh64wlDUtoVqYOow,5795
7
- visionai_sdk_python/client.py,sha256=3XzxP5Db-krmDSFbIJ7UnlZo11pIbmuDzlJkZiLX9Ys,5605
6
+ visionai_sdk_python/async_client.py,sha256=03iWCg_MIxentqT8dZJw4YSnZUp4-ZRli_I8vYyZ45I,6493
7
+ visionai_sdk_python/client.py,sha256=oKRVrHVxHkN5IrfkLJBRpXPEv158_zs7Q2T6ujTr-gE,6272
8
8
  visionai_sdk_python/constants.py,sha256=KWhoxZdlwqXwhUJDqERStq2mrms-MA8aRDqBwbIvNO0,1471
9
9
  visionai_sdk_python/endpoints.py,sha256=CC-AoxXzg39sMAhqx1CTS3gRWKx_H7VOqBANRLVotoU,183
10
10
  visionai_sdk_python/exceptions.py,sha256=BUpcoTgILc3z68lIQGyTYs7PCvu_BTSi228YMTx7ZWs,3020
@@ -13,12 +13,12 @@ visionai_sdk_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
13
13
  visionai_sdk_python/auth/__init__.py,sha256=sWtanqUos5Q8P80IvjoyvOzXv6gYNkflop9qwDwsZk8,400
14
14
  visionai_sdk_python/auth/_mixin.py,sha256=EDDhEB9jHc_7wEoLx_MprhToTVLekL5CyJuLTK8GhNM,5022
15
15
  visionai_sdk_python/auth/async_resource.py,sha256=V6O51i7KyYSBkiQeKAbmw-EIKMVZIozO1gDexTX6tXw,5535
16
- visionai_sdk_python/auth/credentials.py,sha256=SZFu1LAemkjdd7nfrHqtxK72w_TtBrCF03o0ys6Z1Xo,10968
16
+ visionai_sdk_python/auth/credentials.py,sha256=hxigy3hB09lWqmhhcw_QFqYVD-8fHIyvupZYowCIycw,13360
17
17
  visionai_sdk_python/auth/models.py,sha256=u6MDFYaWMyf08XCrGZzwPHv43d6AElH9XO2QSjRsb3Q,449
18
18
  visionai_sdk_python/auth/resource.py,sha256=3PgcxH8N6unKTs2jSQhMeJT_lg6bTce0hz0bzuID12U,5446
19
- visionai_sdk_python/relay/__init__.py,sha256=yqYdedHUBCo-E9wmVY9Xfa5r9zbOLeii-p6HYTdgzvY,1384
20
- visionai_sdk_python/relay/protocol.py,sha256=aIEr4fy7ZRx2g3aBki5mMGbjjnc7AhIAECqAPRARVSY,6611
21
- visionai_sdk_python/relay/examples/__init__.py,sha256=GvjlP-EtrhDVgqReOYqcf1mObND61vO6Q8CT_YFfgDM,732
19
+ visionai_sdk_python/relay/__init__.py,sha256=Z6iJ_Cd-VQVWAF5Tpr_N4oYl13V8eRyp-r22siXz3Uc,1483
20
+ visionai_sdk_python/relay/protocol.py,sha256=LljyVBx9WA4vd-zDKERAkZ7hB8jh7emcZCMULx4n-2U,7063
21
+ visionai_sdk_python/relay/examples/__init__.py,sha256=g3N3XGIUPE8iDGxb0DD4cPm6dt56o9z6Rqnf9PjRBIs,746
22
22
  visionai_sdk_python/relay/examples/error_connection.json,sha256=stjkXo27Vkhoy0rNtPUti2OEXzioxJ8Aqgyq2hAdquA,81
23
23
  visionai_sdk_python/relay/examples/error_request.json,sha256=iUB11sSf1vuBAdzvoiHAoUoifZoG4-wGBK6gb0ConjA,228
24
24
  visionai_sdk_python/relay/examples/heartbeat.json,sha256=CZKMBTkVxtLzY05bQW7AkCULJAIu-7RUVjgc7hTgg9I,22
@@ -33,7 +33,7 @@ visionai_sdk_python/vlm/async_resource.py,sha256=meMUfBDa0g1hk7vFZq2fDuIQ1-QUpU0
33
33
  visionai_sdk_python/vlm/models.py,sha256=yDFjo4LfAxqXYBnl6ZW7YUJQoKKRkQWtqBJi2ruI6Jw,984
34
34
  visionai_sdk_python/vlm/preprocess.py,sha256=ZpJJa13h8_YKwh_P7Pn8WIXV0x-r2xJi-ETgCFsGw-Y,7892
35
35
  visionai_sdk_python/vlm/resource.py,sha256=4eMQ4ACcgd7nUfdRyADWmPd8yZ--uqQC4zwzBft68lg,3386
36
- visionai_sdk_python-2.2.0.dev5.dist-info/METADATA,sha256=LDZ7P4QHkvXJk6_6nHx9qLUOGYVBuExwt_ZSURtF2lk,30597
37
- visionai_sdk_python-2.2.0.dev5.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
38
- visionai_sdk_python-2.2.0.dev5.dist-info/top_level.txt,sha256=79a5MCSLLv6Mbfun-8RS-G6O927hahBwDqJjeuWLdvM,20
39
- visionai_sdk_python-2.2.0.dev5.dist-info/RECORD,,
36
+ visionai_sdk_python-2.2.0.dev7.dist-info/METADATA,sha256=5d969v2YO3Lk-1KEAPZyrmpzgdFNaus8ad16fay-6so,31285
37
+ visionai_sdk_python-2.2.0.dev7.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
38
+ visionai_sdk_python-2.2.0.dev7.dist-info/top_level.txt,sha256=79a5MCSLLv6Mbfun-8RS-G6O927hahBwDqJjeuWLdvM,20
39
+ visionai_sdk_python-2.2.0.dev7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (84.0.0)
2
+ Generator: setuptools (84.2.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5