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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: sference-sdk
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: Python SDK for the sference batch API
5
5
  Project-URL: Homepage, https://sference.com
6
6
  Project-URL: Repository, https://github.com/s-ference/sference
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sference-sdk"
3
- version = "0.2.2"
3
+ version = "0.3.0"
4
4
  description = "Python SDK for the sference batch API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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