|
35 | 35 | ) |
36 | 36 |
|
37 | 37 | if TYPE_CHECKING: |
38 | | - from .resources import ai, web, batch, brand, parse, utility, industry, monitors |
| 38 | + from .resources import ai, web, batch, brand, parse, people, utility, industry, monitors |
39 | 39 | from .resources.ai import AIResource, AsyncAIResource |
40 | 40 | from .resources.web import WebResource, AsyncWebResource |
41 | 41 | from .resources.batch import BatchResource, AsyncBatchResource |
42 | 42 | from .resources.brand import BrandResource, AsyncBrandResource |
43 | 43 | from .resources.parse import ParseResource, AsyncParseResource |
| 44 | + from .resources.people import PeopleResource, AsyncPeopleResource |
44 | 45 | from .resources.utility import UtilityResource, AsyncUtilityResource |
45 | 46 | from .resources.industry import IndustryResource, AsyncIndustryResource |
46 | 47 | from .resources.monitors import MonitorsResource, AsyncMonitorsResource |
@@ -168,10 +169,17 @@ def monitors(self) -> MonitorsResource: |
168 | 169 |
|
169 | 170 | @cached_property |
170 | 171 | def batch(self) -> BatchResource: |
| 172 | + """Scrape many pages or crawl a site asynchronously.""" |
171 | 173 | from .resources.batch import BatchResource |
172 | 174 |
|
173 | 175 | return BatchResource(self) |
174 | 176 |
|
| 177 | + @cached_property |
| 178 | + def people(self) -> PeopleResource: |
| 179 | + from .resources.people import PeopleResource |
| 180 | + |
| 181 | + return PeopleResource(self) |
| 182 | + |
175 | 183 | @cached_property |
176 | 184 | def with_raw_response(self) -> ContextDevWithRawResponse: |
177 | 185 | return ContextDevWithRawResponse(self) |
@@ -396,10 +404,17 @@ def monitors(self) -> AsyncMonitorsResource: |
396 | 404 |
|
397 | 405 | @cached_property |
398 | 406 | def batch(self) -> AsyncBatchResource: |
| 407 | + """Scrape many pages or crawl a site asynchronously.""" |
399 | 408 | from .resources.batch import AsyncBatchResource |
400 | 409 |
|
401 | 410 | return AsyncBatchResource(self) |
402 | 411 |
|
| 412 | + @cached_property |
| 413 | + def people(self) -> AsyncPeopleResource: |
| 414 | + from .resources.people import AsyncPeopleResource |
| 415 | + |
| 416 | + return AsyncPeopleResource(self) |
| 417 | + |
403 | 418 | @cached_property |
404 | 419 | def with_raw_response(self) -> AsyncContextDevWithRawResponse: |
405 | 420 | return AsyncContextDevWithRawResponse(self) |
@@ -566,10 +581,17 @@ def monitors(self) -> monitors.MonitorsResourceWithRawResponse: |
566 | 581 |
|
567 | 582 | @cached_property |
568 | 583 | def batch(self) -> batch.BatchResourceWithRawResponse: |
| 584 | + """Scrape many pages or crawl a site asynchronously.""" |
569 | 585 | from .resources.batch import BatchResourceWithRawResponse |
570 | 586 |
|
571 | 587 | return BatchResourceWithRawResponse(self._client.batch) |
572 | 588 |
|
| 589 | + @cached_property |
| 590 | + def people(self) -> people.PeopleResourceWithRawResponse: |
| 591 | + from .resources.people import PeopleResourceWithRawResponse |
| 592 | + |
| 593 | + return PeopleResourceWithRawResponse(self._client.people) |
| 594 | + |
573 | 595 |
|
574 | 596 | class AsyncContextDevWithRawResponse: |
575 | 597 | _client: AsyncContextDev |
@@ -624,10 +646,17 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse: |
624 | 646 |
|
625 | 647 | @cached_property |
626 | 648 | def batch(self) -> batch.AsyncBatchResourceWithRawResponse: |
| 649 | + """Scrape many pages or crawl a site asynchronously.""" |
627 | 650 | from .resources.batch import AsyncBatchResourceWithRawResponse |
628 | 651 |
|
629 | 652 | return AsyncBatchResourceWithRawResponse(self._client.batch) |
630 | 653 |
|
| 654 | + @cached_property |
| 655 | + def people(self) -> people.AsyncPeopleResourceWithRawResponse: |
| 656 | + from .resources.people import AsyncPeopleResourceWithRawResponse |
| 657 | + |
| 658 | + return AsyncPeopleResourceWithRawResponse(self._client.people) |
| 659 | + |
631 | 660 |
|
632 | 661 | class ContextDevWithStreamedResponse: |
633 | 662 | _client: ContextDev |
@@ -682,10 +711,17 @@ def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse: |
682 | 711 |
|
683 | 712 | @cached_property |
684 | 713 | def batch(self) -> batch.BatchResourceWithStreamingResponse: |
| 714 | + """Scrape many pages or crawl a site asynchronously.""" |
685 | 715 | from .resources.batch import BatchResourceWithStreamingResponse |
686 | 716 |
|
687 | 717 | return BatchResourceWithStreamingResponse(self._client.batch) |
688 | 718 |
|
| 719 | + @cached_property |
| 720 | + def people(self) -> people.PeopleResourceWithStreamingResponse: |
| 721 | + from .resources.people import PeopleResourceWithStreamingResponse |
| 722 | + |
| 723 | + return PeopleResourceWithStreamingResponse(self._client.people) |
| 724 | + |
689 | 725 |
|
690 | 726 | class AsyncContextDevWithStreamedResponse: |
691 | 727 | _client: AsyncContextDev |
@@ -740,10 +776,17 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse: |
740 | 776 |
|
741 | 777 | @cached_property |
742 | 778 | def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse: |
| 779 | + """Scrape many pages or crawl a site asynchronously.""" |
743 | 780 | from .resources.batch import AsyncBatchResourceWithStreamingResponse |
744 | 781 |
|
745 | 782 | return AsyncBatchResourceWithStreamingResponse(self._client.batch) |
746 | 783 |
|
| 784 | + @cached_property |
| 785 | + def people(self) -> people.AsyncPeopleResourceWithStreamingResponse: |
| 786 | + from .resources.people import AsyncPeopleResourceWithStreamingResponse |
| 787 | + |
| 788 | + return AsyncPeopleResourceWithStreamingResponse(self._client.people) |
| 789 | + |
747 | 790 |
|
748 | 791 | Client = ContextDev |
749 | 792 |
|
|
0 commit comments