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.1.0-alpha.10"
".": "0.1.0-alpha.11"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f40e779e2a48f5e37361f2f4a9879e5c40f2851b8033c23db69ec7b91242bf69.yml
openapi_spec_hash: 2dfa146149e61363f1ec40bf9251eb7c
config_hash: 2ddaa85513b6670889b1a56c905423c7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1fe396b957ced73281fc0a61a69b630836aa5c89a8dccce2c5a1716bc9775e80.yml
openapi_spec_hash: 9a0d67fb0781be034b77839584109638
config_hash: df889df131f7438197abd59faace3c77
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.1.0-alpha.11 (2025-05-19)

Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)

### Features

* **api:** update via SDK Studio ([16afb5a](https://github.com/onkernel/kernel-python-sdk/commit/16afb5a7a1da33771aca73685dc32b0a1e90ce2d))
* **api:** update via SDK Studio ([08c35c8](https://github.com/onkernel/kernel-python-sdk/commit/08c35c8662ad34c76936c9dbeac7057a74e4a0df))

## 0.1.0-alpha.10 (2025-05-19)

Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ client = Kernel(
deployment = client.apps.deployments.create(
entrypoint_rel_path="main.ts",
file=b"REPLACE_ME",
env_vars={"OPENAI_API_KEY": "x"},
version="1.0.0",
)
print(deployment.apps)
Expand Down Expand Up @@ -66,6 +67,7 @@ async def main() -> None:
deployment = await client.apps.deployments.create(
entrypoint_rel_path="main.ts",
file=b"REPLACE_ME",
env_vars={"OPENAI_API_KEY": "x"},
version="1.0.0",
)
print(deployment.apps)
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.1.0-alpha.10"
version = "0.1.0-alpha.11"
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.1.0-alpha.10" # x-release-please-version
__version__ = "0.1.0-alpha.11" # x-release-please-version
12 changes: 11 additions & 1 deletion src/kernel/resources/apps/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Mapping, cast
from typing import Dict, Mapping, cast
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -49,6 +49,7 @@ def create(
*,
entrypoint_rel_path: str,
file: FileTypes,
env_vars: Dict[str, str] | NotGiven = NOT_GIVEN,
force: bool | NotGiven = NOT_GIVEN,
region: Literal["aws.us-east-1a"] | NotGiven = NOT_GIVEN,
version: str | NotGiven = NOT_GIVEN,
Expand All @@ -67,6 +68,9 @@ def create(

file: ZIP file containing the application source directory

env_vars: Map of environment variables to set for the deployed application. Each key-value
pair represents an environment variable.

force: Allow overwriting an existing app version

region: Region for deployment. Currently we only support "aws.us-east-1a"
Expand All @@ -85,6 +89,7 @@ def create(
{
"entrypoint_rel_path": entrypoint_rel_path,
"file": file,
"env_vars": env_vars,
"force": force,
"region": region,
"version": version,
Expand Down Expand Up @@ -131,6 +136,7 @@ async def create(
*,
entrypoint_rel_path: str,
file: FileTypes,
env_vars: Dict[str, str] | NotGiven = NOT_GIVEN,
force: bool | NotGiven = NOT_GIVEN,
region: Literal["aws.us-east-1a"] | NotGiven = NOT_GIVEN,
version: str | NotGiven = NOT_GIVEN,
Expand All @@ -149,6 +155,9 @@ async def create(

file: ZIP file containing the application source directory

env_vars: Map of environment variables to set for the deployed application. Each key-value
pair represents an environment variable.

force: Allow overwriting an existing app version

region: Region for deployment. Currently we only support "aws.us-east-1a"
Expand All @@ -167,6 +176,7 @@ async def create(
{
"entrypoint_rel_path": entrypoint_rel_path,
"file": file,
"env_vars": env_vars,
"force": force,
"region": region,
"version": version,
Expand Down
7 changes: 7 additions & 0 deletions src/kernel/types/apps/deployment_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

from typing import Dict
from typing_extensions import Literal, Required, TypedDict

from ..._types import FileTypes
Expand All @@ -16,6 +17,12 @@ class DeploymentCreateParams(TypedDict, total=False):
file: Required[FileTypes]
"""ZIP file containing the application source directory"""

env_vars: Dict[str, str]
"""Map of environment variables to set for the deployed application.

Each key-value pair represents an environment variable.
"""

force: bool
"""Allow overwriting an existing app version"""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/apps/test_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None:
deployment = client.apps.deployments.create(
entrypoint_rel_path="src/app.py",
file=b"raw file contents",
env_vars={"foo": "string"},
force=False,
region="aws.us-east-1a",
version="1.0.0",
Expand Down Expand Up @@ -85,6 +86,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) ->
deployment = await async_client.apps.deployments.create(
entrypoint_rel_path="src/app.py",
file=b"raw file contents",
env_vars={"foo": "string"},
force=False,
region="aws.us-east-1a",
version="1.0.0",
Expand Down