You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -44,15 +44,15 @@ The SDK can be installed with either *pip* or *poetry* package managers.
44
44
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
45
45
46
46
```bash
47
-
pip install unkey
47
+
pip install unkey.py
48
48
```
49
49
50
50
### Poetry
51
51
52
52
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
53
53
54
54
```bash
55
-
poetry add unkey
55
+
poetry add unkey.py
56
56
```
57
57
<!-- End SDK Installation [installation] -->
58
58
@@ -74,7 +74,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
74
74
```python
75
75
# Synchronous Example
76
76
import os
77
-
fromunkeyimport Unkey
77
+
fromunkey_pyimport Unkey
78
78
79
79
s = Unkey(
80
80
bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""),
@@ -94,7 +94,7 @@ The same SDK client can also be used to make asychronous requests by importing a
94
94
# Asynchronous Example
95
95
import asyncio
96
96
import os
97
-
fromunkeyimport Unkey
97
+
fromunkey_pyimport Unkey
98
98
99
99
asyncdefmain():
100
100
s = Unkey(
@@ -186,7 +186,7 @@ return value of `Next` is `None`, then there are no more pages to be fetched.
186
186
Here's an example of one such pagination call:
187
187
```python
188
188
import os
189
-
fromunkeyimport Unkey
189
+
fromunkey_pyimport Unkey
190
190
191
191
s = Unkey(
192
192
bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""),
@@ -213,8 +213,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
213
213
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
214
214
```python
215
215
import os
216
-
from unkey import Unkey
217
216
from unkey.utils import BackoffStrategy, RetryConfig
217
+
from unkey_py import Unkey
218
218
219
219
s = Unkey(
220
220
bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""),
@@ -232,8 +232,8 @@ if res.object is not None:
232
232
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
233
233
```python
234
234
import os
235
-
from unkey import Unkey
236
235
from unkey.utils import BackoffStrategy, RetryConfig
@@ -280,7 +280,7 @@ When custom error responses are specified for an operation, the SDK may also rai
280
280
281
281
```python
282
282
import os
283
-
fromunkeyimport Unkey, models
283
+
fromunkey_pyimport Unkey, models
284
284
285
285
s = Unkey(
286
286
bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""),
@@ -336,7 +336,7 @@ You can override the default server globally by passing a server index to the `s
336
336
337
337
```python
338
338
import os
339
-
fromunkeyimport Unkey
339
+
fromunkey_pyimport Unkey
340
340
341
341
s = Unkey(
342
342
server_idx=0,
@@ -357,7 +357,7 @@ if res.object is not None:
357
357
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
358
358
```python
359
359
import os
360
-
fromunkeyimport Unkey
360
+
fromunkey_pyimport Unkey
361
361
362
362
s = Unkey(
363
363
server_url="https://api.unkey.dev",
@@ -382,7 +382,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu
382
382
383
383
For example, you could specify a header for every request that this sdk makes as follows:
0 commit comments