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 @@
{
".": "2.5.0"
".": "2.6.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 32
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-242450ea46eb8c3e843fd6c4bf87e73192b5f62f6da697cd091d13c6aa7a991b.yml
openapi_spec_hash: c1c561976de1abcacede71fd5ab9b3d9
config_hash: 70e7e80b5e87f94981bee396c6cd41e8
configured_endpoints: 37
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-960cb623c7ec84bf4dc0f5945cbc19eec9cca48271071f400d96066eaa55dbd6.yml
openapi_spec_hash: 84fd39e3f4dc964bf0c32d4e95da1b34
config_hash: 2bea1743c84d63bd61f8501a6ea63065
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 2.6.0 (2026-07-31)

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

### Features

* **api:** api update ([6d99f45](https://github.com/context-dot-dev/context-python-sdk/commit/6d99f453a62eb95134599a6e1d9c648788dfe3b7))
* **api:** api update ([ff409ed](https://github.com/context-dot-dev/context-python-sdk/commit/ff409edadd0a514fa22948f8abd741b9676ca1b6))
* **api:** api update ([925ed2c](https://github.com/context-dot-dev/context-python-sdk/commit/925ed2c6ec48e165f9807101bbbfdbda9c668709))
* **api:** api update ([3f3a903](https://github.com/context-dot-dev/context-python-sdk/commit/3f3a90368fe919e2d727f484db792ca2d631f3bf))
* **api:** api update ([226b29c](https://github.com/context-dot-dev/context-python-sdk/commit/226b29c8e73b0c785ad9c2692225cfac44365395))
* **api:** manual updates ([f32255d](https://github.com/context-dot-dev/context-python-sdk/commit/f32255d61d0e43804dacbfc7b578bd909899db61))

## 2.5.0 (2026-07-22)

Full Changelog: [v2.4.0...v2.5.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.4.0...v2.5.0)
Expand Down
24 changes: 24 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,27 @@ Methods:
- <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>
- <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>
- <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>

# Batch

Types:

```python
from context.dev.types import (
ErrorCount,
Error,
BatchRetrieveResponse,
BatchListResponse,
BatchCancelResponse,
BatchGetResultsResponse,
BatchSubmitResponse,
)
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "context.dev"
version = "2.5.0"
version = "2.6.0"
description = "The official Python library for the context.dev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
39 changes: 38 additions & 1 deletion src/context/dev/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
)

if TYPE_CHECKING:
from .resources import ai, web, brand, parse, utility, industry, monitors
from .resources import ai, web, batch, brand, parse, utility, industry, monitors
from .resources.ai import AIResource, AsyncAIResource
from .resources.web import WebResource, AsyncWebResource
from .resources.batch import BatchResource, AsyncBatchResource
from .resources.brand import BrandResource, AsyncBrandResource
from .resources.parse import ParseResource, AsyncParseResource
from .resources.utility import UtilityResource, AsyncUtilityResource
Expand Down Expand Up @@ -165,6 +166,12 @@ def monitors(self) -> MonitorsResource:

return MonitorsResource(self)

@cached_property
def batch(self) -> BatchResource:
from .resources.batch import BatchResource

return BatchResource(self)

@cached_property
def with_raw_response(self) -> ContextDevWithRawResponse:
return ContextDevWithRawResponse(self)
Expand Down Expand Up @@ -387,6 +394,12 @@ def monitors(self) -> AsyncMonitorsResource:

return AsyncMonitorsResource(self)

@cached_property
def batch(self) -> AsyncBatchResource:
from .resources.batch import AsyncBatchResource

return AsyncBatchResource(self)

@cached_property
def with_raw_response(self) -> AsyncContextDevWithRawResponse:
return AsyncContextDevWithRawResponse(self)
Expand Down Expand Up @@ -551,6 +564,12 @@ def monitors(self) -> monitors.MonitorsResourceWithRawResponse:

return MonitorsResourceWithRawResponse(self._client.monitors)

@cached_property
def batch(self) -> batch.BatchResourceWithRawResponse:
from .resources.batch import BatchResourceWithRawResponse

return BatchResourceWithRawResponse(self._client.batch)


class AsyncContextDevWithRawResponse:
_client: AsyncContextDev
Expand Down Expand Up @@ -603,6 +622,12 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse:

return AsyncMonitorsResourceWithRawResponse(self._client.monitors)

@cached_property
def batch(self) -> batch.AsyncBatchResourceWithRawResponse:
from .resources.batch import AsyncBatchResourceWithRawResponse

return AsyncBatchResourceWithRawResponse(self._client.batch)


class ContextDevWithStreamedResponse:
_client: ContextDev
Expand Down Expand Up @@ -655,6 +680,12 @@ def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse:

return MonitorsResourceWithStreamingResponse(self._client.monitors)

@cached_property
def batch(self) -> batch.BatchResourceWithStreamingResponse:
from .resources.batch import BatchResourceWithStreamingResponse

return BatchResourceWithStreamingResponse(self._client.batch)


class AsyncContextDevWithStreamedResponse:
_client: AsyncContextDev
Expand Down Expand Up @@ -707,6 +738,12 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse:

return AsyncMonitorsResourceWithStreamingResponse(self._client.monitors)

@cached_property
def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse:
from .resources.batch import AsyncBatchResourceWithStreamingResponse

return AsyncBatchResourceWithStreamingResponse(self._client.batch)


Client = ContextDev

Expand Down
2 changes: 1 addition & 1 deletion src/context/dev/_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__ = "context.dev"
__version__ = "2.5.0" # x-release-please-version
__version__ = "2.6.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/context/dev/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
WebResourceWithStreamingResponse,
AsyncWebResourceWithStreamingResponse,
)
from .batch import (
BatchResource,
AsyncBatchResource,
BatchResourceWithRawResponse,
AsyncBatchResourceWithRawResponse,
BatchResourceWithStreamingResponse,
AsyncBatchResourceWithStreamingResponse,
)
from .brand import (
BrandResource,
AsyncBrandResource,
Expand Down Expand Up @@ -100,4 +108,10 @@
"AsyncMonitorsResourceWithRawResponse",
"MonitorsResourceWithStreamingResponse",
"AsyncMonitorsResourceWithStreamingResponse",
"BatchResource",
"AsyncBatchResource",
"BatchResourceWithRawResponse",
"AsyncBatchResourceWithRawResponse",
"BatchResourceWithStreamingResponse",
"AsyncBatchResourceWithStreamingResponse",
]
Loading
Loading