Skip to content

Commit 0f2943f

Browse files
authored
Merge pull request #52 from context-dot-dev/release-please--branches--main--changes--next
release: 2.6.0
2 parents 3764f98 + ee795bc commit 0f2943f

31 files changed

Lines changed: 2486 additions & 145 deletions

‎.release-please-manifest.json‎

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

‎.stats.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 32
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-242450ea46eb8c3e843fd6c4bf87e73192b5f62f6da697cd091d13c6aa7a991b.yml
3-
openapi_spec_hash: c1c561976de1abcacede71fd5ab9b3d9
4-
config_hash: 70e7e80b5e87f94981bee396c6cd41e8
1+
configured_endpoints: 37
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-960cb623c7ec84bf4dc0f5945cbc19eec9cca48271071f400d96066eaa55dbd6.yml
3+
openapi_spec_hash: 84fd39e3f4dc964bf0c32d4e95da1b34
4+
config_hash: 2bea1743c84d63bd61f8501a6ea63065

‎CHANGELOG.md‎

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

3+
## 2.6.0 (2026-07-31)
4+
5+
Full Changelog: [v2.5.0...v2.6.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.5.0...v2.6.0)
6+
7+
### Features
8+
9+
* **api:** api update ([6d99f45](https://github.com/context-dot-dev/context-python-sdk/commit/6d99f453a62eb95134599a6e1d9c648788dfe3b7))
10+
* **api:** api update ([ff409ed](https://github.com/context-dot-dev/context-python-sdk/commit/ff409edadd0a514fa22948f8abd741b9676ca1b6))
11+
* **api:** api update ([925ed2c](https://github.com/context-dot-dev/context-python-sdk/commit/925ed2c6ec48e165f9807101bbbfdbda9c668709))
12+
* **api:** api update ([3f3a903](https://github.com/context-dot-dev/context-python-sdk/commit/3f3a90368fe919e2d727f484db792ca2d631f3bf))
13+
* **api:** api update ([226b29c](https://github.com/context-dot-dev/context-python-sdk/commit/226b29c8e73b0c785ad9c2692225cfac44365395))
14+
* **api:** manual updates ([f32255d](https://github.com/context-dot-dev/context-python-sdk/commit/f32255d61d0e43804dacbfc7b578bd909899db61))
15+
316
## 2.5.0 (2026-07-22)
417

518
Full Changelog: [v2.4.0...v2.5.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.4.0...v2.5.0)

‎api.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,27 @@ Methods:
133133
- <code title="get /monitors/{monitor_id}/runs">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_runs</a>(monitor_id, \*\*<a href="src/context/dev/types/monitor_list_runs_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_runs_response.py">MonitorListRunsResponse</a></code>
134134
- <code title="get /monitors/changes/{change_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">retrieve_change</a>(change_id) -> <a href="./src/context/dev/types/monitor_retrieve_change_response.py">MonitorRetrieveChangeResponse</a></code>
135135
- <code title="post /monitors/{monitor_id}/run">client.monitors.<a href="./src/context/dev/resources/monitors.py">run</a>(monitor_id) -> <a href="./src/context/dev/types/monitor_run_response.py">MonitorRunResponse</a></code>
136+
137+
# Batch
138+
139+
Types:
140+
141+
```python
142+
from context.dev.types import (
143+
ErrorCount,
144+
Error,
145+
BatchRetrieveResponse,
146+
BatchListResponse,
147+
BatchCancelResponse,
148+
BatchGetResultsResponse,
149+
BatchSubmitResponse,
150+
)
151+
```
152+
153+
Methods:
154+
155+
- <code title="get /batch/{batch_id}">client.batch.<a href="./src/context/dev/resources/batch.py">retrieve</a>(batch_id) -> <a href="./src/context/dev/types/batch_retrieve_response.py">BatchRetrieveResponse</a></code>
156+
- <code title="get /batch/list">client.batch.<a href="./src/context/dev/resources/batch.py">list</a>(\*\*<a href="src/context/dev/types/batch_list_params.py">params</a>) -> <a href="./src/context/dev/types/batch_list_response.py">BatchListResponse</a></code>
157+
- <code title="post /batch/{batch_id}/cancel">client.batch.<a href="./src/context/dev/resources/batch.py">cancel</a>(batch_id) -> <a href="./src/context/dev/types/batch_cancel_response.py">BatchCancelResponse</a></code>
158+
- <code title="get /batch/{batch_id}/results">client.batch.<a href="./src/context/dev/resources/batch.py">get_results</a>(batch_id, \*\*<a href="src/context/dev/types/batch_get_results_params.py">params</a>) -> <a href="./src/context/dev/types/batch_get_results_response.py">BatchGetResultsResponse</a></code>
159+
- <code title="post /people/retrieve">client.batch.<a href="./src/context/dev/resources/batch.py">submit</a>(\*\*<a href="src/context/dev/types/batch_submit_params.py">params</a>) -> <a href="./src/context/dev/types/batch_submit_response.py">BatchSubmitResponse</a></code>

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "context.dev"
3-
version = "2.5.0"
3+
version = "2.6.0"
44
description = "The official Python library for the context.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎src/context/dev/_client.py‎

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
)
3636

3737
if TYPE_CHECKING:
38-
from .resources import ai, web, brand, parse, utility, industry, monitors
38+
from .resources import ai, web, batch, brand, parse, utility, industry, monitors
3939
from .resources.ai import AIResource, AsyncAIResource
4040
from .resources.web import WebResource, AsyncWebResource
41+
from .resources.batch import BatchResource, AsyncBatchResource
4142
from .resources.brand import BrandResource, AsyncBrandResource
4243
from .resources.parse import ParseResource, AsyncParseResource
4344
from .resources.utility import UtilityResource, AsyncUtilityResource
@@ -165,6 +166,12 @@ def monitors(self) -> MonitorsResource:
165166

166167
return MonitorsResource(self)
167168

169+
@cached_property
170+
def batch(self) -> BatchResource:
171+
from .resources.batch import BatchResource
172+
173+
return BatchResource(self)
174+
168175
@cached_property
169176
def with_raw_response(self) -> ContextDevWithRawResponse:
170177
return ContextDevWithRawResponse(self)
@@ -387,6 +394,12 @@ def monitors(self) -> AsyncMonitorsResource:
387394

388395
return AsyncMonitorsResource(self)
389396

397+
@cached_property
398+
def batch(self) -> AsyncBatchResource:
399+
from .resources.batch import AsyncBatchResource
400+
401+
return AsyncBatchResource(self)
402+
390403
@cached_property
391404
def with_raw_response(self) -> AsyncContextDevWithRawResponse:
392405
return AsyncContextDevWithRawResponse(self)
@@ -551,6 +564,12 @@ def monitors(self) -> monitors.MonitorsResourceWithRawResponse:
551564

552565
return MonitorsResourceWithRawResponse(self._client.monitors)
553566

567+
@cached_property
568+
def batch(self) -> batch.BatchResourceWithRawResponse:
569+
from .resources.batch import BatchResourceWithRawResponse
570+
571+
return BatchResourceWithRawResponse(self._client.batch)
572+
554573

555574
class AsyncContextDevWithRawResponse:
556575
_client: AsyncContextDev
@@ -603,6 +622,12 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse:
603622

604623
return AsyncMonitorsResourceWithRawResponse(self._client.monitors)
605624

625+
@cached_property
626+
def batch(self) -> batch.AsyncBatchResourceWithRawResponse:
627+
from .resources.batch import AsyncBatchResourceWithRawResponse
628+
629+
return AsyncBatchResourceWithRawResponse(self._client.batch)
630+
606631

607632
class ContextDevWithStreamedResponse:
608633
_client: ContextDev
@@ -655,6 +680,12 @@ def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse:
655680

656681
return MonitorsResourceWithStreamingResponse(self._client.monitors)
657682

683+
@cached_property
684+
def batch(self) -> batch.BatchResourceWithStreamingResponse:
685+
from .resources.batch import BatchResourceWithStreamingResponse
686+
687+
return BatchResourceWithStreamingResponse(self._client.batch)
688+
658689

659690
class AsyncContextDevWithStreamedResponse:
660691
_client: AsyncContextDev
@@ -707,6 +738,12 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse:
707738

708739
return AsyncMonitorsResourceWithStreamingResponse(self._client.monitors)
709740

741+
@cached_property
742+
def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse:
743+
from .resources.batch import AsyncBatchResourceWithStreamingResponse
744+
745+
return AsyncBatchResourceWithStreamingResponse(self._client.batch)
746+
710747

711748
Client = ContextDev
712749

‎src/context/dev/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "context.dev"
4-
__version__ = "2.5.0" # x-release-please-version
4+
__version__ = "2.6.0" # x-release-please-version

‎src/context/dev/resources/__init__.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
WebResourceWithStreamingResponse,
1717
AsyncWebResourceWithStreamingResponse,
1818
)
19+
from .batch import (
20+
BatchResource,
21+
AsyncBatchResource,
22+
BatchResourceWithRawResponse,
23+
AsyncBatchResourceWithRawResponse,
24+
BatchResourceWithStreamingResponse,
25+
AsyncBatchResourceWithStreamingResponse,
26+
)
1927
from .brand import (
2028
BrandResource,
2129
AsyncBrandResource,
@@ -100,4 +108,10 @@
100108
"AsyncMonitorsResourceWithRawResponse",
101109
"MonitorsResourceWithStreamingResponse",
102110
"AsyncMonitorsResourceWithStreamingResponse",
111+
"BatchResource",
112+
"AsyncBatchResource",
113+
"BatchResourceWithRawResponse",
114+
"AsyncBatchResourceWithRawResponse",
115+
"BatchResourceWithStreamingResponse",
116+
"AsyncBatchResourceWithStreamingResponse",
103117
]

0 commit comments

Comments
 (0)