exa-py 1.6.0__tar.gz → 1.7.0__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.
- {exa_py-1.6.0 → exa_py-1.7.0}/PKG-INFO +1 -1
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py/api.py +5 -2
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py.egg-info/PKG-INFO +1 -1
- {exa_py-1.6.0 → exa_py-1.7.0}/setup.py +1 -1
- {exa_py-1.6.0 → exa_py-1.7.0}/README.md +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py/__init__.py +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py/py.typed +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py/utils.py +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py.egg-info/SOURCES.txt +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py.egg-info/dependency_links.txt +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py.egg-info/requires.txt +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/exa_py.egg-info/top_level.txt +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/pyproject.toml +0 -0
- {exa_py-1.6.0 → exa_py-1.7.0}/setup.cfg +0 -0
|
@@ -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.0",
|
|
550
553
|
):
|
|
551
554
|
"""Initialize the Exa client with the provided API key and optional base URL and user agent.
|
|
552
555
|
|
|
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
|