exa-py 1.8.4__py3-none-any.whl → 1.8.5__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
@@ -517,15 +517,17 @@ class AnswerResult:
517
517
  url: str
518
518
  id: str
519
519
  title: Optional[str] = None
520
- published_date: Optional[str] = None
521
520
  author: Optional[str] = None
521
+ published_date: Optional[str] = None
522
+ text: Optional[str] = None
522
523
 
523
524
  def __init__(self, **kwargs):
524
- self.url = kwargs["url"]
525
- self.id = kwargs["id"]
526
- self.title = kwargs.get("title")
527
- self.published_date = kwargs.get("published_date")
528
- self.author = kwargs.get("author")
525
+ self.url = kwargs['url']
526
+ self.id = kwargs['id']
527
+ self.title = kwargs.get('title')
528
+ self.author = kwargs.get('author')
529
+ self.published_date = kwargs.get('published_date')
530
+ self.text = kwargs.get('text')
529
531
 
530
532
  def __str__(self):
531
533
  return (
@@ -534,6 +536,7 @@ class AnswerResult:
534
536
  f"ID: {self.id}\n"
535
537
  f"Published Date: {self.published_date}\n"
536
538
  f"Author: {self.author}\n"
539
+ f"Text: {self.text}\n"
537
540
  )
538
541
 
539
542
 
@@ -608,7 +611,7 @@ class Exa:
608
611
  self,
609
612
  api_key: Optional[str],
610
613
  base_url: str = "https://api.exa.ai",
611
- user_agent: str = "exa-py 1.8.4",
614
+ user_agent: str = "exa-py 1.8.5",
612
615
  ):
613
616
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
614
617
 
@@ -1,23 +1,20 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: exa-py
3
- Version: 1.8.4
3
+ Version: 1.8.5
4
4
  Summary: Python SDK for Exa API.
5
- Home-page: https://github.com/exa-labs/exa-py
6
- Author: Exa
5
+ Author: Exa AI
7
6
  Author-email: hello@exa.ai
8
- Classifier: Development Status :: 5 - Production/Stable
9
- Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Typing :: Typed
12
- Classifier: Programming Language :: Python :: 3.8
7
+ Requires-Python: >=3.9,<4.0
8
+ Classifier: Programming Language :: Python :: 3
13
9
  Classifier: Programming Language :: Python :: 3.9
14
10
  Classifier: Programming Language :: Python :: 3.10
15
11
  Classifier: Programming Language :: Python :: 3.11
16
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Requires-Dist: openai (>=1.48,<2.0)
15
+ Requires-Dist: requests (>=2.32.3,<3.0.0)
16
+ Requires-Dist: typing-extensions (>=4.12.2,<5.0.0)
17
17
  Description-Content-Type: text/markdown
18
- Requires-Dist: requests
19
- Requires-Dist: typing-extensions
20
- Requires-Dist: openai (>=1.10.0)
21
18
 
22
19
  # Exa
23
20
 
@@ -105,3 +102,4 @@ exa = Exa(api_key="your-api-key")
105
102
  print(chunk)
106
103
  ```
107
104
 
105
+
@@ -0,0 +1,7 @@
1
+ exa_py/__init__.py,sha256=1selemczpRm1y8V9cWNm90LARnU1jbtyp-Qpx3c7cTw,28
2
+ exa_py/api.py,sha256=E84d1umFPyi4Xz7L1-BFHYfvCvt9LlT4RBN1lAoPwhk,59596
3
+ exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
+ exa_py-1.8.5.dist-info/METADATA,sha256=wUk1PRI9cYvfX_OwLxOOhVf_VBp1E5DiqAdqmUJdUdM,3389
6
+ exa_py-1.8.5.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
7
+ exa_py-1.8.5.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -1,8 +0,0 @@
1
- exa_py/__init__.py,sha256=1selemczpRm1y8V9cWNm90LARnU1jbtyp-Qpx3c7cTw,28
2
- exa_py/api.py,sha256=MiNGWxhy4ppEV5Buo5jqh0kJiPzTZ-DnZKQVQsIzOl4,59489
3
- exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
- exa_py-1.8.4.dist-info/METADATA,sha256=zb1BWHXdwTnZJuhz7HCS0Cqka98BektdVyWw5E32eoE,3494
6
- exa_py-1.8.4.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
7
- exa_py-1.8.4.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
- exa_py-1.8.4.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- exa_py