exa-py 1.3.1b0__py3-none-any.whl → 1.4.1b0__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
@@ -238,6 +238,16 @@ class _Result:
238
238
  score: Optional[float] = None
239
239
  published_date: Optional[str] = None
240
240
  author: Optional[str] = None
241
+ image: Optional[str] = None
242
+
243
+ def __init__(self, **kwargs):
244
+ self.url = kwargs['url']
245
+ self.id = kwargs['id']
246
+ self.title = kwargs.get('title')
247
+ self.score = kwargs.get('score')
248
+ self.published_date = kwargs.get('published_date')
249
+ self.author = kwargs.get('author')
250
+ self.image = kwargs.get('image')
241
251
 
242
252
  def __str__(self):
243
253
  return (
@@ -247,6 +257,7 @@ class _Result:
247
257
  f"Score: {self.score}\n"
248
258
  f"Published Date: {self.published_date}\n"
249
259
  f"Author: {self.author}\n"
260
+ f"Image: {self.image}\n"
250
261
  )
251
262
 
252
263
 
@@ -471,7 +482,7 @@ class Exa:
471
482
  self,
472
483
  api_key: Optional[str],
473
484
  base_url: str = "https://api.exa.ai",
474
- user_agent: str = "exa-py 1.3.1-beta",
485
+ user_agent: str = "exa-py 1.4.1-beta",
475
486
  ):
476
487
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
477
488
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.3.1b0
3
+ Version: 1.4.1b0
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -0,0 +1,8 @@
1
+ exa_py/__init__.py,sha256=1selemczpRm1y8V9cWNm90LARnU1jbtyp-Qpx3c7cTw,28
2
+ exa_py/api.py,sha256=cJxITJE_IuUtxqYl9K-ue1JelOD7onSBsCmO9IWVdBw,47848
3
+ exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
+ exa_py-1.4.1b0.dist-info/METADATA,sha256=wGktyfKNH3Fuspz82tRSxItEbaQmtx0F9RR_f86d3L0,3032
6
+ exa_py-1.4.1b0.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
7
+ exa_py-1.4.1b0.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
+ exa_py-1.4.1b0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.3)
2
+ Generator: setuptools (74.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- exa_py/__init__.py,sha256=1selemczpRm1y8V9cWNm90LARnU1jbtyp-Qpx3c7cTw,28
2
- exa_py/api.py,sha256=B9R9eoeOpGsS-giNlT6fftkNI8V4dhGtj-YVcTDuo0o,47455
3
- exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
- exa_py-1.3.1b0.dist-info/METADATA,sha256=lQlvuXR2i-KdMCuQbNR4tew9m1N2fY0HyHclfvyf0Jw,3032
6
- exa_py-1.3.1b0.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
7
- exa_py-1.3.1b0.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
- exa_py-1.3.1b0.dist-info/RECORD,,