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
app= response.parse() # get the object that `apps.deploy()` would have returned
249
-
print(app.apps)
240
+
browser= response.parse() # get the object that `browsers.create()` would have returned
241
+
print(browser.session_id)
250
242
```
251
243
252
244
These methods return an [`APIResponse`](https://github.com/onkernel/kernel-python-sdk/tree/main/src/kernel/_response.py) object.
@@ -260,10 +252,8 @@ The above interface eagerly reads the full response body when you make the reque
260
252
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
261
253
262
254
```python
263
-
with client.apps.with_streaming_response.deploy(
264
-
entrypoint_rel_path="app.py",
265
-
file=b"REPLACE_ME",
266
-
version="REPLACE_ME",
255
+
with client.browsers.with_streaming_response.create(
0 commit comments