Skip to content

Commit 685ccfe

Browse files
authored
Merge pull request #67 from runloopai/release-please--branches--main--changes--next
release: 0.1.0-alpha.11
2 parents b82964a + 77b5169 commit 685ccfe

33 files changed

+466
-174
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.10"
2+
".": "0.1.0-alpha.11"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-d46e8a351f9ab9469594e4ac1b185033afe2e530e0dd6df2cae2a666d8fc8336.yml
1+
configured_endpoints: 22
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-6d8fa9e3b0fd4b024c72d3bda8162e15c33295b9e98feabcc0289ecda9cf1db2.yml

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 0.1.0-alpha.11 (2024-08-07)
4+
5+
Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#66](https://github.com/runloopai/api-client-python/issues/66)) ([291eddb](https://github.com/runloopai/api-client-python/commit/291eddbf05d2e12d882f8d53baac9617149a1e34))
10+
* **api:** OpenAPI spec update via Stainless API ([#68](https://github.com/runloopai/api-client-python/issues/68)) ([91913d6](https://github.com/runloopai/api-client-python/commit/91913d6fc7582204fbfa37bf780ea287c0940e97))
11+
* **api:** OpenAPI spec update via Stainless API ([#69](https://github.com/runloopai/api-client-python/issues/69)) ([f82c51c](https://github.com/runloopai/api-client-python/commit/f82c51cc8d5a5b8588d0b8e98cae7bcbf06d4f09))
12+
* **api:** OpenAPI spec update via Stainless API ([#70](https://github.com/runloopai/api-client-python/issues/70)) ([b0ffcf0](https://github.com/runloopai/api-client-python/commit/b0ffcf0031ac84240728907ee722ed3e21de3735))
13+
* **api:** OpenAPI spec update via Stainless API ([#75](https://github.com/runloopai/api-client-python/issues/75)) ([213734e](https://github.com/runloopai/api-client-python/commit/213734e474bce92394eea0aea69132d95850f3c8))
14+
* **api:** OpenAPI spec update via Stainless API ([#76](https://github.com/runloopai/api-client-python/issues/76)) ([d6370bc](https://github.com/runloopai/api-client-python/commit/d6370bce09d23275d632e1b265f6207a189fedc7))
15+
* **api:** OpenAPI spec update via Stainless API ([#79](https://github.com/runloopai/api-client-python/issues/79)) ([23d4705](https://github.com/runloopai/api-client-python/commit/23d470542689d3d227ddff7c11464f6a1849003b))
16+
* **client:** add `retry_count` to raw response class ([#73](https://github.com/runloopai/api-client-python/issues/73)) ([e17fb03](https://github.com/runloopai/api-client-python/commit/e17fb0352e692b04df6f67d98a67182a13cd95ee))
17+
18+
19+
### Chores
20+
21+
* **internal:** bump pyright ([#72](https://github.com/runloopai/api-client-python/issues/72)) ([3fcd1bf](https://github.com/runloopai/api-client-python/commit/3fcd1bf654826a81efea4f3b67fc85a124141d41))
22+
* **internal:** bump ruff version ([#77](https://github.com/runloopai/api-client-python/issues/77)) ([240971d](https://github.com/runloopai/api-client-python/commit/240971d1eac9b67a3e85369b0617fc9821e048b3))
23+
* **internal:** test updates ([#74](https://github.com/runloopai/api-client-python/issues/74)) ([cac724a](https://github.com/runloopai/api-client-python/commit/cac724a5db2acdecc40a9775dcde49b9f8f9a277))
24+
* **internal:** update pydantic compat helper function ([#78](https://github.com/runloopai/api-client-python/issues/78)) ([3befea7](https://github.com/runloopai/api-client-python/commit/3befea7ec40892a6f6455d81eb87d8c4ab8a7629))
25+
* **internal:** use `TypeAlias` marker for type assignments ([#71](https://github.com/runloopai/api-client-python/issues/71)) ([4de0849](https://github.com/runloopai/api-client-python/commit/4de08497452923cfa328aadfd6626286b3248d17))
26+
327
## 0.1.0-alpha.10 (2024-08-02)
428

529
Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ client = Runloop(
3232
bearer_token=os.environ.get("RUNLOOP_API_KEY"),
3333
)
3434

35-
blueprint_view = client.blueprints.create()
36-
print(blueprint_view.id)
35+
devbox_view = client.devboxes.create()
36+
print(devbox_view.id)
3737
```
3838

3939
While you can provide a `bearer_token` keyword argument,
@@ -57,8 +57,8 @@ client = AsyncRunloop(
5757

5858

5959
async def main() -> None:
60-
blueprint_view = await client.blueprints.create()
61-
print(blueprint_view.id)
60+
devbox_view = await client.devboxes.create()
61+
print(devbox_view.id)
6262

6363

6464
asyncio.run(main())
@@ -91,7 +91,7 @@ from runloop_api_client import Runloop
9191
client = Runloop()
9292

9393
try:
94-
client.blueprints.create()
94+
client.devboxes.create()
9595
except runloop_api_client.APIConnectionError as e:
9696
print("The server could not be reached")
9797
print(e.__cause__) # an underlying Exception, likely raised within httpx.
@@ -134,7 +134,7 @@ client = Runloop(
134134
)
135135

136136
# Or, configure per-request:
137-
client.with_options(max_retries=5).blueprints.create()
137+
client.with_options(max_retries=5).devboxes.create()
138138
```
139139

140140
### Timeouts
@@ -157,7 +157,7 @@ client = Runloop(
157157
)
158158

159159
# Override per-request:
160-
client.with_options(timeout=5.0).blueprints.create()
160+
client.with_options(timeout=5.0).devboxes.create()
161161
```
162162

163163
On timeout, an `APITimeoutError` is thrown.
@@ -196,11 +196,11 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
196196
from runloop_api_client import Runloop
197197

198198
client = Runloop()
199-
response = client.blueprints.with_raw_response.create()
199+
response = client.devboxes.with_raw_response.create()
200200
print(response.headers.get('X-My-Header'))
201201

202-
blueprint = response.parse() # get the object that `blueprints.create()` would have returned
203-
print(blueprint.id)
202+
devbox = response.parse() # get the object that `devboxes.create()` would have returned
203+
print(devbox.id)
204204
```
205205

206206
These methods return an [`APIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop_api_client/_response.py) object.
@@ -214,7 +214,7 @@ The above interface eagerly reads the full response body when you make the reque
214214
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.
215215

216216
```python
217-
with client.blueprints.with_streaming_response.create() as response:
217+
with client.devboxes.with_streaming_response.create() as response:
218218
print(response.headers.get("X-My-Header"))
219219

220220
for line in response.iter_lines():

api.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ from runloop_api_client.types import CodeMountParameters
4848
Types:
4949

5050
```python
51-
from runloop_api_client.types import DevboxExecutionDetailView, DevboxListView, DevboxView
51+
from runloop_api_client.types import (
52+
DevboxExecutionDetailView,
53+
DevboxListView,
54+
DevboxView,
55+
DevboxReadFileContentsResponse,
56+
)
5257
```
5358

5459
Methods:
@@ -58,6 +63,7 @@ Methods:
5863
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop_api_client/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_list_view.py">DevboxListView</a></code>
5964
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6065
- <code title="post /v1/devboxes/{id}/read_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
66+
- <code title="post /v1/devboxes/{id}/read_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_contents_params.py">params</a>) -> str</code>
6167
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
6268
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6369

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runloop_api_client"
3-
version = "0.1.0-alpha.10"
3+
version = "0.1.0-alpha.11"
44
description = "The official Python library for the runloop API"
55
dynamic = ["readme"]
66
license = "MIT"
@@ -77,8 +77,8 @@ format = { chain = [
7777
"check:ruff",
7878
"typecheck",
7979
]}
80-
"check:ruff" = "ruff ."
81-
"fix:ruff" = "ruff --fix ."
80+
"check:ruff" = "ruff check ."
81+
"fix:ruff" = "ruff check --fix ."
8282

8383
typecheck = { chain = [
8484
"typecheck:pyright",
@@ -162,6 +162,11 @@ reportPrivateUsage = false
162162
line-length = 120
163163
output-format = "grouped"
164164
target-version = "py37"
165+
166+
[tool.ruff.format]
167+
docstring-code-format = true
168+
169+
[tool.ruff.lint]
165170
select = [
166171
# isort
167172
"I",
@@ -192,9 +197,6 @@ unfixable = [
192197
]
193198
ignore-init-module-imports = true
194199

195-
[tool.ruff.format]
196-
docstring-code-format = true
197-
198200
[tool.ruff.lint.flake8-tidy-imports.banned-api]
199201
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"
200202

requirements-dev.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pydantic-core==2.18.2
7070
# via pydantic
7171
pygments==2.18.0
7272
# via rich
73-
pyright==1.1.364
73+
pyright==1.1.374
7474
pytest==7.1.1
7575
# via pytest-asyncio
7676
pytest-asyncio==0.21.1
@@ -80,7 +80,7 @@ pytz==2023.3.post1
8080
# via dirty-equals
8181
respx==0.20.2
8282
rich==13.7.1
83-
ruff==0.1.9
83+
ruff==0.5.6
8484
setuptools==68.2.2
8585
# via nodeenv
8686
six==1.16.0

0 commit comments

Comments
 (0)