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
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/runloopai/api-client-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6
+
7
+
### Features
8
+
9
+
***api:** OpenAPI spec update via Stainless API ([17991ec](https://github.com/runloopai/api-client-python/commit/17991ec2bd449f7ffef39a9da4b274f82c61c364))
10
+
***api:** OpenAPI spec update via Stainless API ([a624924](https://github.com/runloopai/api-client-python/commit/a62492427ea762b1fa8e6e438ba489ff08b798e5))
11
+
***api:** OpenAPI spec update via Stainless API ([#4](https://github.com/runloopai/api-client-python/issues/4)) ([134f28f](https://github.com/runloopai/api-client-python/commit/134f28ff63f25f18d3a4b7e2300b768ffa4c7590))
12
+
***api:** update via SDK Studio ([88939b3](https://github.com/runloopai/api-client-python/commit/88939b3e46af521bc43a7b25e66ddb5a553a2af6))
13
+
***api:** update via SDK Studio ([e2cca37](https://github.com/runloopai/api-client-python/commit/e2cca3796d1a2b128abb6f93b8e444f0dd4da501))
14
+
15
+
16
+
### Chores
17
+
18
+
* go live ([#2](https://github.com/runloopai/api-client-python/issues/2)) ([3ae4996](https://github.com/runloopai/api-client-python/commit/3ae4996b2474aabb19a98cf38b834ca3e91d7c2b))
19
+
* go live ([#5](https://github.com/runloopai/api-client-python/issues/5)) ([626be20](https://github.com/runloopai/api-client-python/commit/626be201c2ed40ac34f2b5869f6c17c431ee543b))
Alternatively, you can build from source and install the wheel file:
@@ -117,7 +117,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
117
117
118
118
### Publish with a GitHub workflow
119
119
120
-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/runloop-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
120
+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/runloopai/api-client-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
@@ -80,27 +77,27 @@ Typed requests and responses provide autocomplete and documentation within your
80
77
81
78
## Handling errors
82
79
83
-
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `runloop.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_minus_api_minus_client.APIConnectionError` is raised.
84
81
85
82
When the API returns a non-success status code (that is, 4xx or 5xx
86
-
response), a subclass of `runloop.APIStatusError` is raised, containing `status_code` and `response` properties.
83
+
response), a subclass of `runloop_minus_api_minus_client.APIStatusError` is raised, containing `status_code` and `response` properties.
87
84
88
-
All errors inherit from `runloop.APIError`.
85
+
All errors inherit from `runloop_minus_api_minus_client.APIError`.
89
86
90
87
```python
91
-
importrunloop
92
-
fromrunloopimport Runloop
88
+
importrunloop_minus_api_minus_client
89
+
fromrunloop_minus_api_minus_clientimport Runloop
93
90
94
91
client = Runloop()
95
92
96
93
try:
97
94
client.devboxes.create()
98
-
exceptrunloop.APIConnectionError as e:
95
+
exceptrunloop_minus_api_minus_client.APIConnectionError as e:
99
96
print("The server could not be reached")
100
97
print(e.__cause__) # an underlying Exception, likely raised within httpx.
101
-
exceptrunloop.RateLimitError as e:
98
+
exceptrunloop_minus_api_minus_client.RateLimitError as e:
102
99
print("A 429 status code was received; we should back off a bit.")
103
-
exceptrunloop.APIStatusError as e:
100
+
exceptrunloop_minus_api_minus_client.APIStatusError as e:
104
101
print("Another non-200-range status code was received")
105
102
print(e.status_code)
106
103
print(e.response)
@@ -128,7 +125,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
128
125
You can use the `max_retries` option to configure or disable retry settings:
129
126
130
127
```python
131
-
fromrunloopimport Runloop
128
+
fromrunloop_minus_api_minus_clientimport Runloop
132
129
133
130
# Configure the default for all requests:
134
131
client = Runloop(
@@ -146,7 +143,7 @@ By default requests time out after 1 minute. You can configure this with a `time
146
143
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
147
144
148
145
```python
149
-
fromrunloopimport Runloop
146
+
fromrunloop_minus_api_minus_clientimport Runloop
150
147
151
148
# Configure the default for all requests:
152
149
client = Runloop(
@@ -196,7 +193,7 @@ if response.my_field is None:
196
193
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
@@ -206,9 +203,9 @@ devbox = response.parse() # get the object that `devboxes.create()` would have
206
203
print(devbox.id)
207
204
```
208
205
209
-
These methods return an [`APIResponse`](https://github.com/stainless-sdks/runloop-python/tree/main/src/runloop/_response.py) object.
206
+
These methods return an [`APIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_minus_api_minus_client/_response.py) object.
210
207
211
-
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/runloop-python/tree/main/src/runloop/_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_minus_api_minus_client/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
212
209
213
210
#### `.with_streaming_response`
214
211
@@ -270,7 +267,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
@@ -296,7 +293,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
296
293
297
294
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
298
295
299
-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/runloop-python/issues) with questions, bugs, or suggestions.
296
+
We are keen for your feedback; please open an [issue](https://www.github.com/runloopai/api-client-python/issues) with questions, bugs, or suggestions.
0 commit comments