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
@@ -77,27 +77,27 @@ Typed requests and responses provide autocomplete and documentation within your
77
77
78
78
## Handling errors
79
79
80
-
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `runloop_minus_api_minus_client.APIConnectionError` is raised.
80
+
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `runloop_api_client.APIConnectionError` is raised.
81
81
82
82
When the API returns a non-success status code (that is, 4xx or 5xx
83
-
response), a subclass of `runloop_minus_api_minus_client.APIStatusError` is raised, containing `status_code` and `response` properties.
83
+
response), a subclass of `runloop_api_client.APIStatusError` is raised, containing `status_code` and `response` properties.
84
84
85
-
All errors inherit from `runloop_minus_api_minus_client.APIError`.
85
+
All errors inherit from `runloop_api_client.APIError`.
86
86
87
87
```python
88
-
importrunloop_minus_api_minus_client
89
-
fromrunloop_minus_api_minus_clientimport Runloop
88
+
importrunloop_api_client
89
+
fromrunloop_api_clientimport Runloop
90
90
91
91
client = Runloop()
92
92
93
93
try:
94
94
client.devboxes.create()
95
-
exceptrunloop_minus_api_minus_client.APIConnectionError as e:
95
+
exceptrunloop_api_client.APIConnectionError as e:
96
96
print("The server could not be reached")
97
97
print(e.__cause__) # an underlying Exception, likely raised within httpx.
98
-
exceptrunloop_minus_api_minus_client.RateLimitError as e:
98
+
exceptrunloop_api_client.RateLimitError as e:
99
99
print("A 429 status code was received; we should back off a bit.")
100
-
exceptrunloop_minus_api_minus_client.APIStatusError as e:
100
+
exceptrunloop_api_client.APIStatusError as e:
101
101
print("Another non-200-range status code was received")
102
102
print(e.status_code)
103
103
print(e.response)
@@ -125,7 +125,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
125
125
You can use the `max_retries` option to configure or disable retry settings:
126
126
127
127
```python
128
-
fromrunloop_minus_api_minus_clientimport Runloop
128
+
fromrunloop_api_clientimport Runloop
129
129
130
130
# Configure the default for all requests:
131
131
client = Runloop(
@@ -143,7 +143,7 @@ By default requests time out after 1 minute. You can configure this with a `time
143
143
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
144
144
145
145
```python
146
-
fromrunloop_minus_api_minus_clientimport Runloop
146
+
fromrunloop_api_clientimport Runloop
147
147
148
148
# Configure the default for all requests:
149
149
client = Runloop(
@@ -193,7 +193,7 @@ if response.my_field is None:
193
193
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
@@ -203,9 +203,9 @@ devbox = response.parse() # get the object that `devboxes.create()` would have
203
203
print(devbox.id)
204
204
```
205
205
206
-
These methods return an [`APIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_minus_api_minus_client/_response.py) object.
206
+
These methods return an [`APIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_api_client/_response.py) object.
207
207
208
-
The async client returns an [`AsyncAPIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_minus_api_minus_client/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
208
+
The async client returns an [`AsyncAPIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_api_client/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
209
209
210
210
#### `.with_streaming_response`
211
211
@@ -267,7 +267,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `runloop-api-client.DEFAULT_MAX_RETRIES`"
365
+
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `runloop_api_client.DEFAULT_MAX_RETRIES`"
0 commit comments