exa-py 1.14.15__tar.gz → 1.14.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of exa-py might be problematic. Click here for more details.
- {exa_py-1.14.15 → exa_py-1.14.16}/PKG-INFO +1 -1
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/items/client.py +6 -4
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/webhooks/client.py +5 -2
- {exa_py-1.14.15 → exa_py-1.14.16}/pyproject.toml +1 -1
- {exa_py-1.14.15 → exa_py-1.14.16}/README.md +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/api.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/py.typed +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/research/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/research/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/research/models.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/utils.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/_generator/pydantic/BaseModel.jinja2 +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/core/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/core/base.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/enrichments/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/enrichments/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/events/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/events/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/imports/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/imports/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/items/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/monitors/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/monitors/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/monitors/runs/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/monitors/runs/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/searches/__init__.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/searches/client.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/types.py +0 -0
- {exa_py-1.14.15 → exa_py-1.14.16}/exa_py/websets/webhooks/__init__.py +0 -0
|
@@ -15,34 +15,36 @@ class WebsetItemsClient(WebsetsBaseClient):
|
|
|
15
15
|
super().__init__(client)
|
|
16
16
|
|
|
17
17
|
def list(self, webset_id: str, *, cursor: Optional[str] = None,
|
|
18
|
-
limit: Optional[int] = None) -> ListWebsetItemResponse:
|
|
18
|
+
limit: Optional[int] = None, source_id: Optional[str] = None) -> ListWebsetItemResponse:
|
|
19
19
|
"""List all Items for a Webset.
|
|
20
20
|
|
|
21
21
|
Args:
|
|
22
22
|
webset_id (str): The id or externalId of the Webset.
|
|
23
23
|
cursor (str, optional): The cursor to paginate through the results.
|
|
24
24
|
limit (int, optional): The number of results to return (max 200).
|
|
25
|
+
source_id (str, optional): Filter items by source ID.
|
|
25
26
|
|
|
26
27
|
Returns:
|
|
27
28
|
ListWebsetItemResponse: List of webset items.
|
|
28
29
|
"""
|
|
29
|
-
params = {k: v for k, v in {"cursor": cursor, "limit": limit}.items() if v is not None}
|
|
30
|
+
params = {k: v for k, v in {"cursor": cursor, "limit": limit, "sourceId": source_id}.items() if v is not None}
|
|
30
31
|
response = self.request(f"/v0/websets/{webset_id}/items", params=params, method="GET")
|
|
31
32
|
return ListWebsetItemResponse.model_validate(response)
|
|
32
33
|
|
|
33
|
-
def list_all(self, webset_id: str, *, limit: Optional[int] = None) -> Iterator[WebsetItem]:
|
|
34
|
+
def list_all(self, webset_id: str, *, limit: Optional[int] = None, source_id: Optional[str] = None) -> Iterator[WebsetItem]:
|
|
34
35
|
"""Iterate through all Items in a Webset, handling pagination automatically.
|
|
35
36
|
|
|
36
37
|
Args:
|
|
37
38
|
webset_id (str): The id or externalId of the Webset.
|
|
38
39
|
limit (int, optional): The number of results to return per page (max 200).
|
|
40
|
+
source_id (str, optional): Filter items by source ID.
|
|
39
41
|
|
|
40
42
|
Yields:
|
|
41
43
|
WebsetItem: Each item in the webset.
|
|
42
44
|
"""
|
|
43
45
|
cursor = None
|
|
44
46
|
while True:
|
|
45
|
-
response = self.list(webset_id, cursor=cursor, limit=limit)
|
|
47
|
+
response = self.list(webset_id, cursor=cursor, limit=limit, source_id=source_id)
|
|
46
48
|
for item in response.data:
|
|
47
49
|
yield item
|
|
48
50
|
|
|
@@ -19,7 +19,8 @@ class WebhookAttemptsClient(WebsetsBaseClient):
|
|
|
19
19
|
super().__init__(client)
|
|
20
20
|
|
|
21
21
|
def list(self, webhook_id: str, *, cursor: Optional[str] = None,
|
|
22
|
-
limit: Optional[int] = None, event_type: Optional[Union[EventType, str]] = None
|
|
22
|
+
limit: Optional[int] = None, event_type: Optional[Union[EventType, str]] = None,
|
|
23
|
+
successful: Optional[bool] = None) -> ListWebhookAttemptsResponse:
|
|
23
24
|
"""List all attempts made by a Webhook ordered in descending order.
|
|
24
25
|
|
|
25
26
|
Args:
|
|
@@ -27,6 +28,7 @@ class WebhookAttemptsClient(WebsetsBaseClient):
|
|
|
27
28
|
cursor (str, optional): The cursor to paginate through the results.
|
|
28
29
|
limit (int, optional): The number of results to return (max 200).
|
|
29
30
|
event_type (Union[EventType, str], optional): The type of event to filter by.
|
|
31
|
+
successful (bool, optional): Filter attempts by success status.
|
|
30
32
|
|
|
31
33
|
Returns:
|
|
32
34
|
ListWebhookAttemptsResponse: List of webhook attempts.
|
|
@@ -41,7 +43,8 @@ class WebhookAttemptsClient(WebsetsBaseClient):
|
|
|
41
43
|
params = {k: v for k, v in {
|
|
42
44
|
"cursor": cursor,
|
|
43
45
|
"limit": limit,
|
|
44
|
-
"eventType": event_type_value
|
|
46
|
+
"eventType": event_type_value,
|
|
47
|
+
"successful": successful
|
|
45
48
|
}.items() if v is not None}
|
|
46
49
|
|
|
47
50
|
response = self.request(f"/v0/webhooks/{webhook_id}/attempts", params=params, method="GET")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|