sference-sdk 0.2.2__tar.gz → 0.3.0__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.
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/PKG-INFO +2 -2
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/pyproject.toml +1 -1
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/sference_sdk/client.py +9 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/.gitignore +0 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/LICENSE +0 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/README.md +0 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/sference_sdk/__init__.py +0 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/sference_sdk/async_client.py +0 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/sference_sdk/checkpoint.py +0 -0
- {sference_sdk-0.2.2 → sference_sdk-0.3.0}/sference_sdk/models.py +0 -0
|
@@ -61,6 +61,15 @@ class SferenceClient:
|
|
|
61
61
|
transport=transport,
|
|
62
62
|
)
|
|
63
63
|
|
|
64
|
+
def set_api_key(self, api_key: str | None) -> None:
|
|
65
|
+
"""Swap the credential used for subsequent requests.
|
|
66
|
+
|
|
67
|
+
For callers whose key changes while a client is alive — a rotated key in
|
|
68
|
+
a long-running integration, for instance — so they need not rebuild the
|
|
69
|
+
client and its connection pool.
|
|
70
|
+
"""
|
|
71
|
+
self._token = api_key
|
|
72
|
+
|
|
64
73
|
def close(self) -> None:
|
|
65
74
|
self._client.close()
|
|
66
75
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|