Skip to content

release: 0.16.0 #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
lint:
name: lint
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v4
Expand All @@ -30,6 +29,7 @@ jobs:

- name: Run lints
run: ./scripts/lint

test:
name: test
runs-on: ubuntu-latest
Expand All @@ -50,4 +50,3 @@ jobs:

- name: Run tests
run: ./scripts/test

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.15.0"
".": "0.16.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 61
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-2d76871c6215358c176295dc168fa7f571f81df1f8df37ecbd1e4e06e7220d67.yml
configured_endpoints: 66
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-5d84d2732400f196ddbe4b4e7c0e98b3f02bab9ce2ed750e69d399d898e496d1.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.16.0 (2025-01-31)

Full Changelog: [v0.15.0...v0.16.0](https://github.com/runloopai/api-client-python/compare/v0.15.0...v0.16.0)

### Features

* **api:** api update ([#510](https://github.com/runloopai/api-client-python/issues/510)) ([914ee46](https://github.com/runloopai/api-client-python/commit/914ee460ccdc6bbd58a7a263d5566716b4bbf9df))


### Chores

* **internal:** codegen related update ([#508](https://github.com/runloopai/api-client-python/issues/508)) ([278e736](https://github.com/runloopai/api-client-python/commit/278e736787b66e0d0a5fbc64743a386cfefd1994))

## 0.15.0 (2025-01-29)

Full Changelog: [v0.14.0...v0.15.0](https://github.com/runloopai/api-client-python/compare/v0.14.0...v0.15.0)
Expand Down
32 changes: 32 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,38 @@ Methods:
- <code title="post /v1/devboxes/{id}/upload_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">upload_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_upload_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_upload_file_response.py">object</a></code>
- <code title="post /v1/devboxes/{id}/write_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_contents_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>

## Browsers

Types:

```python
from runloop_api_client.types.devboxes import BrowserView
```

Methods:

- <code title="post /v1/devboxes/browsers">client.devboxes.browsers.<a href="./src/runloop_api_client/resources/devboxes/browsers.py">create</a>() -> <a href="./src/runloop_api_client/types/devboxes/browser_view.py">BrowserView</a></code>

## Computers

Types:

```python
from runloop_api_client.types.devboxes import (
ComputerView,
ComputerKeyboardInteractionResponse,
ComputerMouseInteractionResponse,
ComputerScreenInteractionResponse,
)
```

Methods:

- <code title="post /v1/devboxes/computers">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">create</a>(\*\*<a href="src/runloop_api_client/types/devboxes/computer_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_view.py">ComputerView</a></code>
- <code title="post /v1/devboxes/computers/{id}/keyboard_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">keyboard_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_keyboard_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_keyboard_interaction_response.py">ComputerKeyboardInteractionResponse</a></code>
- <code title="post /v1/devboxes/computers/{id}/mouse_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">mouse_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_mouse_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_mouse_interaction_response.py">ComputerMouseInteractionResponse</a></code>
- <code title="post /v1/devboxes/computers/{id}/screen_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">screen_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_screen_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_screen_interaction_response.py">ComputerScreenInteractionResponse</a></code>

## Lsp

Types:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "runloop_api_client"
version = "0.15.0"
version = "0.16.0"
description = "The official Python library for the runloop API"
dynamic = ["readme"]
license = "MIT"
Expand Down Expand Up @@ -129,6 +129,7 @@ testpaths = ["tests"]
addopts = "--tb=short"
xfail_strict = true
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
"error"
]
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies…"
brew bundle
Expand Down
1 change: 0 additions & 1 deletion scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rye run lint

echo "==> Making sure it imports"
rye run python -c 'import runloop_api_client'

4 changes: 2 additions & 2 deletions src/runloop_api_client/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
if cast_to and is_annotated_type(cast_to):
cast_to = extract_type_arg(cast_to, 0)

origin = get_origin(cast_to) or cast_to

if self._is_sse_stream:
if to:
if not is_stream_class_type(to):
Expand Down Expand Up @@ -195,8 +197,6 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
if cast_to == bool:
return cast(R, response.text.lower() == "true")

origin = get_origin(cast_to) or cast_to

if origin == APIResponse:
raise RuntimeError("Unexpected state - cast_to is `APIResponse`")

Expand Down
2 changes: 1 addition & 1 deletion src/runloop_api_client/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "runloop_api_client"
__version__ = "0.15.0" # x-release-please-version
__version__ = "0.16.0" # x-release-please-version
10 changes: 10 additions & 0 deletions src/runloop_api_client/resources/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def list(
self,
*,
limit: int | NotGiven = NOT_GIVEN,
public: bool | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -161,6 +162,9 @@ def list(
Args:
limit: The limit of items to return. Default is 20.

public: List public benchmarks, e.g. SWE-bench. Defaults to false, i.e. only
user-defined benchmarks are listed.

starting_after: Load the next page of data starting after the item with the given ID.

extra_headers: Send extra headers
Expand All @@ -181,6 +185,7 @@ def list(
query=maybe_transform(
{
"limit": limit,
"public": public,
"starting_after": starting_after,
},
benchmark_list_params.BenchmarkListParams,
Expand Down Expand Up @@ -351,6 +356,7 @@ async def list(
self,
*,
limit: int | NotGiven = NOT_GIVEN,
public: bool | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -365,6 +371,9 @@ async def list(
Args:
limit: The limit of items to return. Default is 20.

public: List public benchmarks, e.g. SWE-bench. Defaults to false, i.e. only
user-defined benchmarks are listed.

starting_after: Load the next page of data starting after the item with the given ID.

extra_headers: Send extra headers
Expand All @@ -385,6 +394,7 @@ async def list(
query=await async_maybe_transform(
{
"limit": limit,
"public": public,
"starting_after": starting_after,
},
benchmark_list_params.BenchmarkListParams,
Expand Down
8 changes: 8 additions & 0 deletions src/runloop_api_client/resources/benchmarks/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def retrieve(
def list(
self,
*,
benchmark_id: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -94,6 +95,8 @@ def list(
List all BenchmarkRuns matching filter.

Args:
benchmark_id: The Benchmark ID to filter by.

limit: The limit of items to return. Default is 20.

starting_after: Load the next page of data starting after the item with the given ID.
Expand All @@ -115,6 +118,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"benchmark_id": benchmark_id,
"limit": limit,
"starting_after": starting_after,
},
Expand Down Expand Up @@ -221,6 +225,7 @@ async def retrieve(
async def list(
self,
*,
benchmark_id: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -234,6 +239,8 @@ async def list(
List all BenchmarkRuns matching filter.

Args:
benchmark_id: The Benchmark ID to filter by.

limit: The limit of items to return. Default is 20.

starting_after: Load the next page of data starting after the item with the given ID.
Expand All @@ -255,6 +262,7 @@ async def list(
timeout=timeout,
query=await async_maybe_transform(
{
"benchmark_id": benchmark_id,
"limit": limit,
"starting_after": starting_after,
},
Expand Down
28 changes: 28 additions & 0 deletions src/runloop_api_client/resources/devboxes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
LogsResourceWithStreamingResponse,
AsyncLogsResourceWithStreamingResponse,
)
from .browsers import (
BrowsersResource,
AsyncBrowsersResource,
BrowsersResourceWithRawResponse,
AsyncBrowsersResourceWithRawResponse,
BrowsersResourceWithStreamingResponse,
AsyncBrowsersResourceWithStreamingResponse,
)
from .devboxes import (
DevboxesResource,
AsyncDevboxesResource,
Expand All @@ -24,6 +32,14 @@
DevboxesResourceWithStreamingResponse,
AsyncDevboxesResourceWithStreamingResponse,
)
from .computers import (
ComputersResource,
AsyncComputersResource,
ComputersResourceWithRawResponse,
AsyncComputersResourceWithRawResponse,
ComputersResourceWithStreamingResponse,
AsyncComputersResourceWithStreamingResponse,
)
from .executions import (
ExecutionsResource,
AsyncExecutionsResource,
Expand All @@ -34,6 +50,18 @@
)

__all__ = [
"BrowsersResource",
"AsyncBrowsersResource",
"BrowsersResourceWithRawResponse",
"AsyncBrowsersResourceWithRawResponse",
"BrowsersResourceWithStreamingResponse",
"AsyncBrowsersResourceWithStreamingResponse",
"ComputersResource",
"AsyncComputersResource",
"ComputersResourceWithRawResponse",
"AsyncComputersResourceWithRawResponse",
"ComputersResourceWithStreamingResponse",
"AsyncComputersResourceWithStreamingResponse",
"LspResource",
"AsyncLspResource",
"LspResourceWithRawResponse",
Expand Down
Loading
Loading