Skip to content

Commit 2343963

Browse files
authored
Merge pull request #4 from warpdotdev/release-please--branches--main--changes--next
release: 0.2.0
2 parents b84002b + dd9fbce commit 2343963

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+226
-207
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.1"
2+
".": "0.2.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 3
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c4c5f89f67a73e4d17377d2b96fc201a63cd5458cbebaa23e78f92b59b90cc5b.yml
33
openapi_spec_hash: 931c6189a4fc4ee320963646b1b7edbe
4-
config_hash: f555d17517c40197d3ba9240ca35e1ee
4+
config_hash: fa393af196be851b15bd1394c2eaafaa

CHANGELOG.md

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

3+
## 0.2.0 (2025-12-17)
4+
5+
Full Changelog: [v0.1.1...v0.2.0](https://github.com/warpdotdev/warp-sdk-python/compare/v0.1.1...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([2fc23de](https://github.com/warpdotdev/warp-sdk-python/commit/2fc23de0e1d42443e691350804605243c5902026))
10+
11+
12+
### Chores
13+
14+
* update SDK settings ([a94be20](https://github.com/warpdotdev/warp-sdk-python/commit/a94be20a45967c6ec5bd95dcc3ffcf457db84305))
15+
316
## 0.1.1 (2025-12-17)
417

518
Full Changelog: [v0.1.0...v0.1.1](https://github.com/warpdotdev/warp-sdk-python/compare/v0.1.0...v0.1.1)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ pip install -r requirements-dev.lock
3636

3737
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
3838
result in merge conflicts between manual patches and changes from the generator. The generator will never
39-
modify the contents of the `src/warp_sdk/lib/` and `examples/` directories.
39+
modify the contents of the `src/warp_agent_sdk/lib/` and `examples/` directories.
4040

4141
## Adding and running examples
4242

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Warp API Python API library
22

33
<!-- prettier-ignore -->
4-
[![PyPI version](https://img.shields.io/pypi/v/warp-sdk.svg?label=pypi%20(stable))](https://pypi.org/project/warp-sdk/)
4+
[![PyPI version](https://img.shields.io/pypi/v/warp-agent-sdk.svg?label=pypi%20(stable))](https://pypi.org/project/warp-agent-sdk/)
55

66
The Warp API Python library provides convenient access to the Warp API REST API from any Python 3.9+
77
application. The library includes type definitions for all request params and response fields,
@@ -17,7 +17,7 @@ The full API of this library can be found in [api.md](api.md).
1717

1818
```sh
1919
# install from PyPI
20-
pip install warp-sdk
20+
pip install warp-agent-sdk
2121
```
2222

2323
## Usage
@@ -26,7 +26,7 @@ The full API of this library can be found in [api.md](api.md).
2626

2727
```python
2828
import os
29-
from warp_sdk import WarpAPI
29+
from warp_agent_sdk import WarpAPI
3030

3131
client = WarpAPI(
3232
api_key=os.environ.get("WARP_API_KEY"), # This is the default and can be omitted
@@ -108,7 +108,7 @@ Simply import `AsyncWarpAPI` instead of `WarpAPI` and use `await` with each API
108108
```python
109109
import os
110110
import asyncio
111-
from warp_sdk import AsyncWarpAPI
111+
from warp_agent_sdk import AsyncWarpAPI
112112

113113
client = AsyncWarpAPI(
114114
api_key=os.environ.get("WARP_API_KEY"), # This is the default and can be omitted
@@ -135,16 +135,16 @@ You can enable this by installing `aiohttp`:
135135

136136
```sh
137137
# install from PyPI
138-
pip install warp-sdk[aiohttp]
138+
pip install warp-agent-sdk[aiohttp]
139139
```
140140

141141
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
142142

143143
```python
144144
import os
145145
import asyncio
146-
from warp_sdk import DefaultAioHttpClient
147-
from warp_sdk import AsyncWarpAPI
146+
from warp_agent_sdk import DefaultAioHttpClient
147+
from warp_agent_sdk import AsyncWarpAPI
148148

149149

150150
async def main() -> None:
@@ -175,7 +175,7 @@ Typed requests and responses provide autocomplete and documentation within your
175175
Nested parameters are dictionaries, typed using `TypedDict`, for example:
176176

177177
```python
178-
from warp_sdk import WarpAPI
178+
from warp_agent_sdk import WarpAPI
179179

180180
client = WarpAPI()
181181

@@ -188,29 +188,29 @@ print(response.config)
188188

189189
## Handling errors
190190

191-
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `warp_sdk.APIConnectionError` is raised.
191+
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `warp_agent_sdk.APIConnectionError` is raised.
192192

193193
When the API returns a non-success status code (that is, 4xx or 5xx
194-
response), a subclass of `warp_sdk.APIStatusError` is raised, containing `status_code` and `response` properties.
194+
response), a subclass of `warp_agent_sdk.APIStatusError` is raised, containing `status_code` and `response` properties.
195195

196-
All errors inherit from `warp_sdk.APIError`.
196+
All errors inherit from `warp_agent_sdk.APIError`.
197197

198198
```python
199-
import warp_sdk
200-
from warp_sdk import WarpAPI
199+
import warp_agent_sdk
200+
from warp_agent_sdk import WarpAPI
201201

202202
client = WarpAPI()
203203

204204
try:
205205
client.agent.run(
206206
prompt="Fix the bug in auth.go",
207207
)
208-
except warp_sdk.APIConnectionError as e:
208+
except warp_agent_sdk.APIConnectionError as e:
209209
print("The server could not be reached")
210210
print(e.__cause__) # an underlying Exception, likely raised within httpx.
211-
except warp_sdk.RateLimitError as e:
211+
except warp_agent_sdk.RateLimitError as e:
212212
print("A 429 status code was received; we should back off a bit.")
213-
except warp_sdk.APIStatusError as e:
213+
except warp_agent_sdk.APIStatusError as e:
214214
print("Another non-200-range status code was received")
215215
print(e.status_code)
216216
print(e.response)
@@ -238,7 +238,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
238238
You can use the `max_retries` option to configure or disable retry settings:
239239

240240
```python
241-
from warp_sdk import WarpAPI
241+
from warp_agent_sdk import WarpAPI
242242

243243
# Configure the default for all requests:
244244
client = WarpAPI(
@@ -258,7 +258,7 @@ By default requests time out after 1 minute. You can configure this with a `time
258258
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
259259

260260
```python
261-
from warp_sdk import WarpAPI
261+
from warp_agent_sdk import WarpAPI
262262

263263
# Configure the default for all requests:
264264
client = WarpAPI(
@@ -312,7 +312,7 @@ if response.my_field is None:
312312
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
313313

314314
```py
315-
from warp_sdk import WarpAPI
315+
from warp_agent_sdk import WarpAPI
316316

317317
client = WarpAPI()
318318
response = client.agent.with_raw_response.run(
@@ -324,9 +324,9 @@ agent = response.parse() # get the object that `agent.run()` would have returne
324324
print(agent.task_id)
325325
```
326326

327-
These methods return an [`APIResponse`](https://github.com/warpdotdev/warp-sdk-python/tree/main/src/warp_sdk/_response.py) object.
327+
These methods return an [`APIResponse`](https://github.com/warpdotdev/warp-sdk-python/tree/main/src/warp_agent_sdk/_response.py) object.
328328

329-
The async client returns an [`AsyncAPIResponse`](https://github.com/warpdotdev/warp-sdk-python/tree/main/src/warp_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
329+
The async client returns an [`AsyncAPIResponse`](https://github.com/warpdotdev/warp-sdk-python/tree/main/src/warp_agent_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
330330

331331
#### `.with_streaming_response`
332332

@@ -390,7 +390,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
390390

391391
```python
392392
import httpx
393-
from warp_sdk import WarpAPI, DefaultHttpxClient
393+
from warp_agent_sdk import WarpAPI, DefaultHttpxClient
394394

395395
client = WarpAPI(
396396
# Or use the `WARP_API_BASE_URL` env var
@@ -413,7 +413,7 @@ client.with_options(http_client=DefaultHttpxClient(...))
413413
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
414414

415415
```py
416-
from warp_sdk import WarpAPI
416+
from warp_agent_sdk import WarpAPI
417417

418418
with WarpAPI() as client:
419419
# make requests here
@@ -441,8 +441,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
441441
You can determine the version that is being used at runtime with:
442442

443443
```py
444-
import warp_sdk
445-
print(warp_sdk.__version__)
444+
import warp_agent_sdk
445+
print(warp_agent_sdk.__version__)
446446
```
447447

448448
## Requirements

api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
Types:
44

55
```python
6-
from warp_sdk.types import AmbientAgentConfig, AgentRunResponse
6+
from warp_agent_sdk.types import AmbientAgentConfig, AgentRunResponse
77
```
88

99
Methods:
1010

11-
- <code title="post /agent/run">client.agent.<a href="./src/warp_sdk/resources/agent/agent.py">run</a>(\*\*<a href="src/warp_sdk/types/agent_run_params.py">params</a>) -> <a href="./src/warp_sdk/types/agent_run_response.py">AgentRunResponse</a></code>
11+
- <code title="post /agent/run">client.agent.<a href="./src/warp_agent_sdk/resources/agent/agent.py">run</a>(\*\*<a href="src/warp_agent_sdk/types/agent_run_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent_run_response.py">AgentRunResponse</a></code>
1212

1313
## Tasks
1414

1515
Types:
1616

1717
```python
18-
from warp_sdk.types.agent import TaskItem, TaskSourceType, TaskState, TaskListResponse
18+
from warp_agent_sdk.types.agent import TaskItem, TaskSourceType, TaskState, TaskListResponse
1919
```
2020

2121
Methods:
2222

23-
- <code title="get /agent/tasks/{taskId}">client.agent.tasks.<a href="./src/warp_sdk/resources/agent/tasks.py">retrieve</a>(task_id) -> <a href="./src/warp_sdk/types/agent/task_item.py">TaskItem</a></code>
24-
- <code title="get /agent/tasks">client.agent.tasks.<a href="./src/warp_sdk/resources/agent/tasks.py">list</a>(\*\*<a href="src/warp_sdk/types/agent/task_list_params.py">params</a>) -> <a href="./src/warp_sdk/types/agent/task_list_response.py">TaskListResponse</a></code>
23+
- <code title="get /agent/tasks/{taskId}">client.agent.tasks.<a href="./src/warp_agent_sdk/resources/agent/tasks.py">retrieve</a>(task_id) -> <a href="./src/warp_agent_sdk/types/agent/task_item.py">TaskItem</a></code>
24+
- <code title="get /agent/tasks">client.agent.tasks.<a href="./src/warp_agent_sdk/resources/agent/tasks.py">list</a>(\*\*<a href="src/warp_agent_sdk/types/agent/task_list_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent/task_list_response.py">TaskListResponse</a></code>

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "warp-sdk"
3-
version = "0.1.1"
2+
name = "warp-agent-sdk"
3+
version = "0.2.0"
44
description = "The official Python library for the warp-api API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -86,7 +86,7 @@ include = [
8686
]
8787

8888
[tool.hatch.build.targets.wheel]
89-
packages = ["src/warp_sdk"]
89+
packages = ["src/warp_agent_sdk"]
9090

9191
[tool.hatch.build.targets.sdist]
9292
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
@@ -154,7 +154,7 @@ show_error_codes = true
154154
#
155155
# We also exclude our `tests` as mypy doesn't always infer
156156
# types correctly and Pyright will still catch any type errors.
157-
exclude = ['src/warp_sdk/_files.py', '_dev/.*.py', 'tests/.*']
157+
exclude = ['src/warp_agent_sdk/_files.py', '_dev/.*.py', 'tests/.*']
158158

159159
strict_equality = true
160160
implicit_reexport = true
@@ -246,7 +246,7 @@ length-sort = true
246246
length-sort-straight = true
247247
combine-as-imports = true
248248
extra-standard-library = ["typing_extensions"]
249-
known-first-party = ["warp_sdk", "tests"]
249+
known-first-party = ["warp_agent_sdk", "tests"]
250250

251251
[tool.ruff.lint.per-file-ignores]
252252
"bin/**.py" = ["T201", "T203"]

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
],
6262
"release-type": "python",
6363
"extra-files": [
64-
"src/warp_sdk/_version.py"
64+
"src/warp_agent_sdk/_version.py"
6565
]
6666
}

requirements-dev.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ annotated-types==0.7.0
66
anyio==4.12.0
77
# via
88
# httpx
9-
# warp-sdk
9+
# warp-agent-sdk
1010
backports-asyncio-runner==1.2.0 ; python_full_version < '3.11'
1111
# via pytest-asyncio
1212
certifi==2025.11.12
@@ -17,7 +17,7 @@ colorama==0.4.6 ; sys_platform == 'win32'
1717
# via pytest
1818
dirty-equals==0.11
1919
distro==1.9.0
20-
# via warp-sdk
20+
# via warp-agent-sdk
2121
exceptiongroup==1.3.1 ; python_full_version < '3.11'
2222
# via
2323
# anyio
@@ -31,7 +31,7 @@ httpcore==1.0.9
3131
httpx==0.28.1
3232
# via
3333
# respx
34-
# warp-sdk
34+
# warp-agent-sdk
3535
idna==3.11
3636
# via
3737
# anyio
@@ -59,7 +59,7 @@ pathspec==0.12.1
5959
pluggy==1.6.0
6060
# via pytest
6161
pydantic==2.12.5
62-
# via warp-sdk
62+
# via warp-agent-sdk
6363
pydantic-core==2.41.5
6464
# via pydantic
6565
pygments==2.19.2
@@ -86,7 +86,7 @@ ruff==0.14.7
8686
six==1.17.0 ; python_full_version < '3.10'
8787
# via python-dateutil
8888
sniffio==1.3.1
89-
# via warp-sdk
89+
# via warp-agent-sdk
9090
time-machine==2.19.0 ; python_full_version < '3.10'
9191
time-machine==3.1.0 ; python_full_version >= '3.10'
9292
tomli==2.3.0 ; python_full_version < '3.11'
@@ -103,7 +103,7 @@ typing-extensions==4.15.0
103103
# pyright
104104
# pytest-asyncio
105105
# typing-inspection
106-
# warp-sdk
106+
# warp-agent-sdk
107107
typing-inspection==0.4.2
108108
# via pydantic
109109
zipp==3.23.0

scripts/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ echo "==> Running mypy"
1414
uv run mypy .
1515

1616
echo "==> Making sure it imports"
17-
uv run python -c 'import warp_sdk'
17+
uv run python -c 'import warp_agent_sdk'

0 commit comments

Comments
 (0)