exa-py 1.5.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.5.2
3
+ Version: 1.7.0
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -133,7 +133,7 @@ FIND_SIMILAR_OPTIONS_TYPES = {
133
133
  }
134
134
 
135
135
  # the livecrawl options
136
- LIVECRAWL_OPTIONS = Literal["always", "fallback", "never"]
136
+ LIVECRAWL_OPTIONS = Literal["always", "fallback", "never", "auto"]
137
137
 
138
138
  CONTENTS_OPTIONS_TYPES = {
139
139
  "ids": [list],
@@ -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 in the text content
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.5.2",
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.5.2
3
+ Version: 1.7.0
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="exa_py",
5
- version="1.5.2",
5
+ version="1.7.0",
6
6
  description="Python SDK for Exa API.",
7
7
  long_description_content_type="text/markdown",
8
8
  long_description=open("README.md").read(),
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes