exa-py 1.6.0__py3-none-any.whl → 1.7.1__py3-none-any.whl
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/api.py
CHANGED
|
@@ -228,6 +228,7 @@ class ExtrasOptions(TypedDict, total=False):
|
|
|
228
228
|
"""
|
|
229
229
|
|
|
230
230
|
links: int
|
|
231
|
+
image_links: int
|
|
231
232
|
|
|
232
233
|
@dataclass
|
|
233
234
|
class _Result:
|
|
@@ -242,7 +243,7 @@ class _Result:
|
|
|
242
243
|
author (str, optional): If available, the author of the content.
|
|
243
244
|
image (str, optional): If available, a URL to an image associated with the content.
|
|
244
245
|
subpages (List[_Result], optional): If available, a list of Exa contents results for a page's subpages (e.g. tesla.com --subpage--> shop.tesla.com)
|
|
245
|
-
extras (Dict, optional): Additional metadata associated with the result; currently supports returning links
|
|
246
|
+
extras (Dict, optional): Additional metadata associated with the result; currently supports returning links and image links extracted from the text content
|
|
246
247
|
"""
|
|
247
248
|
|
|
248
249
|
url: str
|
|
@@ -252,6 +253,7 @@ class _Result:
|
|
|
252
253
|
published_date: Optional[str] = None
|
|
253
254
|
author: Optional[str] = None
|
|
254
255
|
image: Optional[str] = None
|
|
256
|
+
favicon: Optional[str] = None
|
|
255
257
|
subpages: Optional[List[_Result]] = None
|
|
256
258
|
extras: Optional[Dict] = None
|
|
257
259
|
|
|
@@ -263,6 +265,7 @@ class _Result:
|
|
|
263
265
|
self.published_date = kwargs.get('published_date')
|
|
264
266
|
self.author = kwargs.get('author')
|
|
265
267
|
self.image = kwargs.get('image')
|
|
268
|
+
self.favicon = kwargs.get('favicon')
|
|
266
269
|
self.subpages = kwargs.get('subpages')
|
|
267
270
|
self.extras = kwargs.get("extras")
|
|
268
271
|
|
|
@@ -546,7 +549,7 @@ class Exa:
|
|
|
546
549
|
self,
|
|
547
550
|
api_key: Optional[str],
|
|
548
551
|
base_url: str = "https://api.exa.ai",
|
|
549
|
-
user_agent: str = "exa-py 1.
|
|
552
|
+
user_agent: str = "exa-py 1.7.1",
|
|
550
553
|
):
|
|
551
554
|
"""Initialize the Exa client with the provided API key and optional base URL and user agent.
|
|
552
555
|
|
|
@@ -855,8 +858,8 @@ class Exa:
|
|
|
855
858
|
return SearchResponse(
|
|
856
859
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
857
860
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
858
|
-
data["autoDate"] if "autoDate" in data else None,
|
|
859
861
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
862
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
860
863
|
)
|
|
861
864
|
|
|
862
865
|
@overload
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exa_py
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.1
|
|
4
4
|
Summary: Python SDK for Exa API.
|
|
5
5
|
Home-page: https://github.com/exa-labs/exa-py
|
|
6
6
|
Author: Exa
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: requests
|
|
19
19
|
Requires-Dist: typing-extensions
|
|
20
|
-
Requires-Dist: openai
|
|
20
|
+
Requires-Dist: openai>=1.10.0
|
|
21
21
|
|
|
22
22
|
# Exa
|
|
23
23
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
exa_py/__init__.py,sha256=1selemczpRm1y8V9cWNm90LARnU1jbtyp-Qpx3c7cTw,28
|
|
2
|
+
exa_py/api.py,sha256=cpEfDvzh29hxRvEocQy_JZrvA6ylXgffxGsvUVUJCfU,53261
|
|
3
|
+
exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
|
|
5
|
+
exa_py-1.7.1.dist-info/METADATA,sha256=lzCZGKQEb8EnxGvX7A0mp3cDy7EVbObC76g0BDeo1ek,3029
|
|
6
|
+
exa_py-1.7.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
+
exa_py-1.7.1.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
|
|
8
|
+
exa_py-1.7.1.dist-info/RECORD,,
|
exa_py-1.6.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
exa_py/__init__.py,sha256=1selemczpRm1y8V9cWNm90LARnU1jbtyp-Qpx3c7cTw,28
|
|
2
|
-
exa_py/api.py,sha256=gN6opd7KG2txZyd_ykWmAUmUuOb7fL2bDipR5Yg3M_8,53133
|
|
3
|
-
exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
|
|
5
|
-
exa_py-1.6.0.dist-info/METADATA,sha256=8HvNv5tzYa1UsXtaEbMQXkNQfnBKWvt-wW8Emyn4Y4Y,3030
|
|
6
|
-
exa_py-1.6.0.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
|
|
7
|
-
exa_py-1.6.0.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
|
|
8
|
-
exa_py-1.6.0.dist-info/RECORD,,
|
|
File without changes
|