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.2.0"
".": "2.3.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: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-ecb277557634e2f0838ea196e2b21f11924f65e133c7977e8c2e1a603b8df466.yml
openapi_spec_hash: 798ce4cb042389a1179bf9af6fc1173d
config_hash: ff35e224e809656528c44163aa41bebd
configured_endpoints: 30
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-c90f13e3cf4b9ae6a1d8f22c0e7285ab12d412d3a659a51a247a97adc7f08121.yml
openapi_spec_hash: bf7879be38ebf3397a939c80b261a47a
config_hash: daabb160675d86b354711da1e77e5129
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 2.3.0 (2026-07-12)

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

### Features

* **api:** api update ([dac3f38](https://github.com/context-dot-dev/context-python-sdk/commit/dac3f38751139f40031ab70750a7831cbb9f42be))
* **api:** api update ([921eaa8](https://github.com/context-dot-dev/context-python-sdk/commit/921eaa8d1682df7ba9d70855fcb700b336465c7c))
* **api:** api update ([3e75380](https://github.com/context-dot-dev/context-python-sdk/commit/3e753806bd5077a81f62d797021c15067a0daffe))
* **api:** api update ([3b9e64f](https://github.com/context-dot-dev/context-python-sdk/commit/3b9e64f5dddd1992ea79f0dc88da7f3131f7e43d))
* **api:** api update ([9f486e7](https://github.com/context-dot-dev/context-python-sdk/commit/9f486e7d1067b55375977f6fc1f2520093eeb4d6))
* **api:** api update ([94c1bb6](https://github.com/context-dot-dev/context-python-sdk/commit/94c1bb60cde333694a5f62b2526603b79d8fd62a))
* **api:** manual updates ([538a766](https://github.com/context-dot-dev/context-python-sdk/commit/538a76606adf7e885ad2f953ea62ae2ac8b9e29a))

## 2.2.0 (2026-07-10)

Full Changelog: [v2.1.0...v2.2.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.1.0...v2.2.0)
Expand Down
13 changes: 13 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Parse

Types:

```python
from context.dev.types import ParseHandleResponse
```

Methods:

- <code title="post /parse">client.parse.<a href="./src/context/dev/resources/parse.py">handle</a>(body, \*\*<a href="src/context/dev/types/parse_handle_params.py">params</a>) -> <a href="./src/context/dev/types/parse_handle_response.py">ParseHandleResponse</a></code>

# Web

Types:
Expand Down Expand Up @@ -89,6 +101,7 @@ Types:

```python
from context.dev.types import (
WebhookDelivery,
MonitorCreateResponse,
MonitorRetrieveResponse,
MonitorUpdateResponse,
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 = "context.dev"
version = "2.2.0"
version = "2.3.0"
description = "The official Python library for the context.dev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
51 changes: 44 additions & 7 deletions src/context/dev/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
)

if TYPE_CHECKING:
from .resources import ai, web, brand, utility, industry, monitors
from .resources import ai, web, brand, parse, utility, industry, monitors
from .resources.ai import AIResource, AsyncAIResource
from .resources.web import WebResource, AsyncWebResource
from .resources.brand import BrandResource, AsyncBrandResource
from .resources.parse import ParseResource, AsyncParseResource
from .resources.utility import UtilityResource, AsyncUtilityResource
from .resources.industry import IndustryResource, AsyncIndustryResource
from .resources.monitors import MonitorsResource, AsyncMonitorsResource
Expand Down Expand Up @@ -119,6 +120,12 @@ def __init__(
_strict_response_validation=_strict_response_validation,
)

@cached_property
def parse(self) -> ParseResource:
from .resources.parse import ParseResource

return ParseResource(self)

@cached_property
def web(self) -> WebResource:
from .resources.web import WebResource
Expand Down Expand Up @@ -152,7 +159,7 @@ def utility(self) -> UtilityResource:
@cached_property
def monitors(self) -> MonitorsResource:
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""
from .resources.monitors import MonitorsResource

Expand Down Expand Up @@ -335,6 +342,12 @@ def __init__(
_strict_response_validation=_strict_response_validation,
)

@cached_property
def parse(self) -> AsyncParseResource:
from .resources.parse import AsyncParseResource

return AsyncParseResource(self)

@cached_property
def web(self) -> AsyncWebResource:
from .resources.web import AsyncWebResource
Expand Down Expand Up @@ -368,7 +381,7 @@ def utility(self) -> AsyncUtilityResource:
@cached_property
def monitors(self) -> AsyncMonitorsResource:
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""
from .resources.monitors import AsyncMonitorsResource

Expand Down Expand Up @@ -493,6 +506,12 @@ class ContextDevWithRawResponse:
def __init__(self, client: ContextDev) -> None:
self._client = client

@cached_property
def parse(self) -> parse.ParseResourceWithRawResponse:
from .resources.parse import ParseResourceWithRawResponse

return ParseResourceWithRawResponse(self._client.parse)

@cached_property
def web(self) -> web.WebResourceWithRawResponse:
from .resources.web import WebResourceWithRawResponse
Expand Down Expand Up @@ -526,7 +545,7 @@ def utility(self) -> utility.UtilityResourceWithRawResponse:
@cached_property
def monitors(self) -> monitors.MonitorsResourceWithRawResponse:
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""
from .resources.monitors import MonitorsResourceWithRawResponse

Expand All @@ -539,6 +558,12 @@ class AsyncContextDevWithRawResponse:
def __init__(self, client: AsyncContextDev) -> None:
self._client = client

@cached_property
def parse(self) -> parse.AsyncParseResourceWithRawResponse:
from .resources.parse import AsyncParseResourceWithRawResponse

return AsyncParseResourceWithRawResponse(self._client.parse)

@cached_property
def web(self) -> web.AsyncWebResourceWithRawResponse:
from .resources.web import AsyncWebResourceWithRawResponse
Expand Down Expand Up @@ -572,7 +597,7 @@ def utility(self) -> utility.AsyncUtilityResourceWithRawResponse:
@cached_property
def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse:
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""
from .resources.monitors import AsyncMonitorsResourceWithRawResponse

Expand All @@ -585,6 +610,12 @@ class ContextDevWithStreamedResponse:
def __init__(self, client: ContextDev) -> None:
self._client = client

@cached_property
def parse(self) -> parse.ParseResourceWithStreamingResponse:
from .resources.parse import ParseResourceWithStreamingResponse

return ParseResourceWithStreamingResponse(self._client.parse)

@cached_property
def web(self) -> web.WebResourceWithStreamingResponse:
from .resources.web import WebResourceWithStreamingResponse
Expand Down Expand Up @@ -618,7 +649,7 @@ def utility(self) -> utility.UtilityResourceWithStreamingResponse:
@cached_property
def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse:
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""
from .resources.monitors import MonitorsResourceWithStreamingResponse

Expand All @@ -631,6 +662,12 @@ class AsyncContextDevWithStreamedResponse:
def __init__(self, client: AsyncContextDev) -> None:
self._client = client

@cached_property
def parse(self) -> parse.AsyncParseResourceWithStreamingResponse:
from .resources.parse import AsyncParseResourceWithStreamingResponse

return AsyncParseResourceWithStreamingResponse(self._client.parse)

@cached_property
def web(self) -> web.AsyncWebResourceWithStreamingResponse:
from .resources.web import AsyncWebResourceWithStreamingResponse
Expand Down Expand Up @@ -664,7 +701,7 @@ def utility(self) -> utility.AsyncUtilityResourceWithStreamingResponse:
@cached_property
def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse:
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""
from .resources.monitors import AsyncMonitorsResourceWithStreamingResponse

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.2.0" # x-release-please-version
__version__ = "2.3.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 @@ -24,6 +24,14 @@
BrandResourceWithStreamingResponse,
AsyncBrandResourceWithStreamingResponse,
)
from .parse import (
ParseResource,
AsyncParseResource,
ParseResourceWithRawResponse,
AsyncParseResourceWithRawResponse,
ParseResourceWithStreamingResponse,
AsyncParseResourceWithStreamingResponse,
)
from .utility import (
UtilityResource,
AsyncUtilityResource,
Expand All @@ -50,6 +58,12 @@
)

__all__ = [
"ParseResource",
"AsyncParseResource",
"ParseResourceWithRawResponse",
"AsyncParseResourceWithRawResponse",
"ParseResourceWithStreamingResponse",
"AsyncParseResourceWithStreamingResponse",
"WebResource",
"AsyncWebResource",
"WebResourceWithRawResponse",
Expand Down
4 changes: 2 additions & 2 deletions src/context/dev/resources/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

class MonitorsResource(SyncAPIResource):
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""

@cached_property
Expand Down Expand Up @@ -622,7 +622,7 @@ def run(

class AsyncMonitorsResource(AsyncAPIResource):
"""
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema.
Monitor pages, sitemaps, and extracted website data for exact or semantic changes. Webhook payloads are documented by the MonitorsChangeDetectedWebhookPayload and MonitorsRunCompletedWebhookPayload schemas.
"""

@cached_property
Expand Down
Loading
Loading