Skip to content
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
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.34.0"
".": "0.35.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 100
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-2b77b2efd4d25aaa264cbd6fcb0e43f82d14ce5a4bd6fb1e3859be440868685a.yml
openapi_spec_hash: 299be31ecb4a96dcd54d4d902a716e68
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a0f1d08e6f62a74de2aac5c25e592494abdd59f2cfca2842c5810927554faee0.yml
openapi_spec_hash: ebd8bf67b7bb371cf4b4fa68b967cab5
config_hash: 27c0ea01aeb797a1767af139851c5b66
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.35.0 (2026-02-18)

Full Changelog: [v0.34.0...v0.35.0](https://github.com/kernel/kernel-python-sdk/compare/v0.34.0...v0.35.0)

### Features

* GPU pools ([a417ea7](https://github.com/kernel/kernel-python-sdk/commit/a417ea79722eb78dd7b425cf515485f3b18af5b4))

## 0.34.0 (2026-02-18)

Full Changelog: [v0.33.0...v0.34.0](https://github.com/kernel/kernel-python-sdk/compare/v0.33.0...v0.34.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kernel"
version = "0.34.0"
version = "0.35.0"
description = "The official Python library for the kernel API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/_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__ = "kernel"
__version__ = "0.34.0" # x-release-please-version
__version__ = "0.35.0" # x-release-please-version
10 changes: 10 additions & 0 deletions src/kernel/resources/browsers/browsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def create(
self,
*,
extensions: Iterable[BrowserExtension] | Omit = omit,
gpu: bool | Omit = omit,
headless: bool | Omit = omit,
invocation_id: str | Omit = omit,
kiosk_mode: bool | Omit = omit,
Expand All @@ -158,6 +159,9 @@ def create(
Args:
extensions: List of browser extensions to load into the session. Provide each by id or name.

gpu: If true, launches a hardware-accelerated browser with GPU rendering. Requires
Start-Up or Enterprise plan.

headless: If true, launches the browser using a headless image (no VNC/GUI). Defaults to
false.

Expand Down Expand Up @@ -206,6 +210,7 @@ def create(
body=maybe_transform(
{
"extensions": extensions,
"gpu": gpu,
"headless": headless,
"invocation_id": invocation_id,
"kiosk_mode": kiosk_mode,
Expand Down Expand Up @@ -547,6 +552,7 @@ async def create(
self,
*,
extensions: Iterable[BrowserExtension] | Omit = omit,
gpu: bool | Omit = omit,
headless: bool | Omit = omit,
invocation_id: str | Omit = omit,
kiosk_mode: bool | Omit = omit,
Expand All @@ -569,6 +575,9 @@ async def create(
Args:
extensions: List of browser extensions to load into the session. Provide each by id or name.

gpu: If true, launches a hardware-accelerated browser with GPU rendering. Requires
Start-Up or Enterprise plan.

headless: If true, launches the browser using a headless image (no VNC/GUI). Defaults to
false.

Expand Down Expand Up @@ -617,6 +626,7 @@ async def create(
body=await async_maybe_transform(
{
"extensions": extensions,
"gpu": gpu,
"headless": headless,
"invocation_id": invocation_id,
"kiosk_mode": kiosk_mode,
Expand Down
6 changes: 6 additions & 0 deletions src/kernel/types/browser_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class BrowserCreateParams(TypedDict, total=False):
Provide each by id or name.
"""

gpu: bool
"""If true, launches a hardware-accelerated browser with GPU rendering.

Requires Start-Up or Enterprise plan.
"""

headless: bool
"""If true, launches the browser using a headless image (no VNC/GUI).

Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/browser_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class BrowserCreateResponse(BaseModel):
deleted_at: Optional[datetime] = None
"""When the browser session was soft-deleted. Only present for deleted sessions."""

gpu: Optional[bool] = None
"""Whether the browser session has hardware-accelerated GPU rendering."""

kiosk_mode: Optional[bool] = None
"""Whether the browser session is running in kiosk mode."""

Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/browser_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class BrowserListResponse(BaseModel):
deleted_at: Optional[datetime] = None
"""When the browser session was soft-deleted. Only present for deleted sessions."""

gpu: Optional[bool] = None
"""Whether the browser session has hardware-accelerated GPU rendering."""

kiosk_mode: Optional[bool] = None
"""Whether the browser session is running in kiosk mode."""

Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/browser_pool_acquire_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class BrowserPoolAcquireResponse(BaseModel):
deleted_at: Optional[datetime] = None
"""When the browser session was soft-deleted. Only present for deleted sessions."""

gpu: Optional[bool] = None
"""Whether the browser session has hardware-accelerated GPU rendering."""

kiosk_mode: Optional[bool] = None
"""Whether the browser session is running in kiosk mode."""

Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/browser_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class BrowserRetrieveResponse(BaseModel):
deleted_at: Optional[datetime] = None
"""When the browser session was soft-deleted. Only present for deleted sessions."""

gpu: Optional[bool] = None
"""Whether the browser session has hardware-accelerated GPU rendering."""

kiosk_mode: Optional[bool] = None
"""Whether the browser session is running in kiosk mode."""

Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/browser_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class BrowserUpdateResponse(BaseModel):
deleted_at: Optional[datetime] = None
"""When the browser session was soft-deleted. Only present for deleted sessions."""

gpu: Optional[bool] = None
"""Whether the browser session has hardware-accelerated GPU rendering."""

kiosk_mode: Optional[bool] = None
"""Whether the browser session is running in kiosk mode."""

Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/invocation_list_browsers_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class Browser(BaseModel):
deleted_at: Optional[datetime] = None
"""When the browser session was soft-deleted. Only present for deleted sessions."""

gpu: Optional[bool] = None
"""Whether the browser session has hardware-accelerated GPU rendering."""

kiosk_mode: Optional[bool] = None
"""Whether the browser session is running in kiosk mode."""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_browsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None:
"name": "name",
}
],
gpu=False,
headless=False,
invocation_id="rr33xuugxj9h0bkf1rdt2bet",
kiosk_mode=True,
Expand Down Expand Up @@ -402,6 +403,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) ->
"name": "name",
}
],
gpu=False,
headless=False,
invocation_id="rr33xuugxj9h0bkf1rdt2bet",
kiosk_mode=True,
Expand Down