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.8.0"
".": "2.9.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: 38
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-155e4761d62255841349c0f8a01b0a9c463ea1d1f2d6c4fd8d1a75c8bef6f226.yml
openapi_spec_hash: ab91f77e7c9d992400cbc7fc8a9e76c1
config_hash: bff282047fafdad771fb7ec685f56944
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a0dda03bbb600917cfb9add468cc4c8c84351a8dbbf61644dbc353263ca1748f.yml
openapi_spec_hash: c24264f32a46d9317aac5af9d6a396f7
config_hash: 920678668dd2da6f8966fbf1b8fde4e2
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 2.9.0 (2026-08-07)

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

### Features

* **api:** api update ([b2b2312](https://github.com/context-dot-dev/context-python-sdk/commit/b2b2312efd4957bb5323718bcdc2cc1bb709e667))
* **api:** api update ([040f31d](https://github.com/context-dot-dev/context-python-sdk/commit/040f31d9ff3c297156b913be31d77a39046ccd5b))
* **api:** api update ([cbf9c43](https://github.com/context-dot-dev/context-python-sdk/commit/cbf9c43bd14c3eb845ff45bf4e6e0e7c18fae5aa))
* **api:** api update ([06c5d6c](https://github.com/context-dot-dev/context-python-sdk/commit/06c5d6cb6e41c9557eac78249da5460f999e12c6))
* **api:** api update ([3935a16](https://github.com/context-dot-dev/context-python-sdk/commit/3935a1695972bbe75c7035ec89efd2877be71f90))
* **api:** api update ([6f0f3fb](https://github.com/context-dot-dev/context-python-sdk/commit/6f0f3fbc0966c2b69a4fa594204d6cb8b115ec60))
* **api:** api update ([d9a026d](https://github.com/context-dot-dev/context-python-sdk/commit/d9a026d6526e93e54ec2fcddc7ee7988748370c8))
* **api:** manual updates ([a62c8a4](https://github.com/context-dot-dev/context-python-sdk/commit/a62c8a49822503dbc13baa8258476b732c2b4e43))

## 2.8.0 (2026-08-05)

Full Changelog: [v2.7.0...v2.8.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.7.0...v2.8.0)
Expand Down
16 changes: 15 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ from context.dev.types import (
Intake,
BatchRetrieveResponse,
BatchListResponse,
BatchDeleteResponse,
BatchCancelResponse,
BatchGetResultsResponse,
BatchSubmitResponse,
Expand All @@ -161,6 +162,19 @@ 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="delete /batch/{batch_id}">client.batch.<a href="./src/context/dev/resources/batch.py">delete</a>(batch_id) -> <a href="./src/context/dev/types/batch_delete_response.py">BatchDeleteResponse</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>
- <code title="post /batch/submit">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>

# People

Types:

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

Methods:

- <code title="post /people/enrich">client.people.<a href="./src/context/dev/resources/people.py">enrich</a>(\*\*<a href="src/context/dev/types/person_enrich_params.py">params</a>) -> <a href="./src/context/dev/types/person_enrich_response.py">PersonEnrichResponse</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.8.0"
version = "2.9.0"
description = "The official Python library for the context.dev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
45 changes: 44 additions & 1 deletion src/context/dev/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
)

if TYPE_CHECKING:
from .resources import ai, web, batch, brand, parse, utility, industry, monitors
from .resources import ai, web, batch, brand, parse, people, 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.people import PeopleResource, AsyncPeopleResource
from .resources.utility import UtilityResource, AsyncUtilityResource
from .resources.industry import IndustryResource, AsyncIndustryResource
from .resources.monitors import MonitorsResource, AsyncMonitorsResource
Expand Down Expand Up @@ -168,10 +169,17 @@ def monitors(self) -> MonitorsResource:

@cached_property
def batch(self) -> BatchResource:
"""Scrape many pages or crawl a site asynchronously."""
from .resources.batch import BatchResource

return BatchResource(self)

@cached_property
def people(self) -> PeopleResource:
from .resources.people import PeopleResource

return PeopleResource(self)

@cached_property
def with_raw_response(self) -> ContextDevWithRawResponse:
return ContextDevWithRawResponse(self)
Expand Down Expand Up @@ -396,10 +404,17 @@ def monitors(self) -> AsyncMonitorsResource:

@cached_property
def batch(self) -> AsyncBatchResource:
"""Scrape many pages or crawl a site asynchronously."""
from .resources.batch import AsyncBatchResource

return AsyncBatchResource(self)

@cached_property
def people(self) -> AsyncPeopleResource:
from .resources.people import AsyncPeopleResource

return AsyncPeopleResource(self)

@cached_property
def with_raw_response(self) -> AsyncContextDevWithRawResponse:
return AsyncContextDevWithRawResponse(self)
Expand Down Expand Up @@ -566,10 +581,17 @@ def monitors(self) -> monitors.MonitorsResourceWithRawResponse:

@cached_property
def batch(self) -> batch.BatchResourceWithRawResponse:
"""Scrape many pages or crawl a site asynchronously."""
from .resources.batch import BatchResourceWithRawResponse

return BatchResourceWithRawResponse(self._client.batch)

@cached_property
def people(self) -> people.PeopleResourceWithRawResponse:
from .resources.people import PeopleResourceWithRawResponse

return PeopleResourceWithRawResponse(self._client.people)


class AsyncContextDevWithRawResponse:
_client: AsyncContextDev
Expand Down Expand Up @@ -624,10 +646,17 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse:

@cached_property
def batch(self) -> batch.AsyncBatchResourceWithRawResponse:
"""Scrape many pages or crawl a site asynchronously."""
from .resources.batch import AsyncBatchResourceWithRawResponse

return AsyncBatchResourceWithRawResponse(self._client.batch)

@cached_property
def people(self) -> people.AsyncPeopleResourceWithRawResponse:
from .resources.people import AsyncPeopleResourceWithRawResponse

return AsyncPeopleResourceWithRawResponse(self._client.people)


class ContextDevWithStreamedResponse:
_client: ContextDev
Expand Down Expand Up @@ -682,10 +711,17 @@ def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse:

@cached_property
def batch(self) -> batch.BatchResourceWithStreamingResponse:
"""Scrape many pages or crawl a site asynchronously."""
from .resources.batch import BatchResourceWithStreamingResponse

return BatchResourceWithStreamingResponse(self._client.batch)

@cached_property
def people(self) -> people.PeopleResourceWithStreamingResponse:
from .resources.people import PeopleResourceWithStreamingResponse

return PeopleResourceWithStreamingResponse(self._client.people)


class AsyncContextDevWithStreamedResponse:
_client: AsyncContextDev
Expand Down Expand Up @@ -740,10 +776,17 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse:

@cached_property
def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse:
"""Scrape many pages or crawl a site asynchronously."""
from .resources.batch import AsyncBatchResourceWithStreamingResponse

return AsyncBatchResourceWithStreamingResponse(self._client.batch)

@cached_property
def people(self) -> people.AsyncPeopleResourceWithStreamingResponse:
from .resources.people import AsyncPeopleResourceWithStreamingResponse

return AsyncPeopleResourceWithStreamingResponse(self._client.people)


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.8.0" # x-release-please-version
__version__ = "2.9.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 @@ -40,6 +40,14 @@
ParseResourceWithStreamingResponse,
AsyncParseResourceWithStreamingResponse,
)
from .people import (
PeopleResource,
AsyncPeopleResource,
PeopleResourceWithRawResponse,
AsyncPeopleResourceWithRawResponse,
PeopleResourceWithStreamingResponse,
AsyncPeopleResourceWithStreamingResponse,
)
from .utility import (
UtilityResource,
AsyncUtilityResource,
Expand Down Expand Up @@ -114,4 +122,10 @@
"AsyncBatchResourceWithRawResponse",
"BatchResourceWithStreamingResponse",
"AsyncBatchResourceWithStreamingResponse",
"PeopleResource",
"AsyncPeopleResource",
"PeopleResourceWithRawResponse",
"AsyncPeopleResourceWithRawResponse",
"PeopleResourceWithStreamingResponse",
"AsyncPeopleResourceWithStreamingResponse",
]
Loading
Loading