exa-py 1.1.1__tar.gz → 1.1.3__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.

Potentially problematic release.


This version of exa-py might be problematic. Click here for more details.

@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.1.1
3
+ Version: 1.1.3
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
7
7
  Author-email: hello@exa.ai
8
+ License: UNKNOWN
9
+ Platform: UNKNOWN
8
10
  Classifier: Development Status :: 5 - Production/Stable
9
11
  Classifier: Intended Audience :: Developers
10
12
  Classifier: License :: OSI Approved :: MIT License
@@ -15,9 +17,6 @@ Classifier: Programming Language :: Python :: 3.10
15
17
  Classifier: Programming Language :: Python :: 3.11
16
18
  Classifier: Programming Language :: Python :: 3.12
17
19
  Description-Content-Type: text/markdown
18
- Requires-Dist: requests
19
- Requires-Dist: typing-extensions
20
- Requires-Dist: openai>=1.10.0
21
20
 
22
21
  # Exa
23
22
 
@@ -92,3 +91,5 @@ exa = Exa(api_key="your-api-key")
92
91
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
93
92
  ```
94
93
 
94
+
95
+
@@ -27,11 +27,8 @@ from exa_py.utils import (
27
27
  format_exa_result,
28
28
  maybe_get_query,
29
29
  )
30
- from dotenv import load_dotenv
31
30
  import os
32
31
 
33
- load_dotenv()
34
-
35
32
  is_beta = os.getenv("IS_BETA") == "True"
36
33
 
37
34
 
@@ -421,8 +418,8 @@ class SearchResponse(Generic[T]):
421
418
 
422
419
  results: List[T]
423
420
  autoprompt_string: Optional[str]
424
- auto_date: Optional[str]
425
421
  resolved_search_type: Optional[str]
422
+ auto_date: Optional[str]
426
423
 
427
424
  def __str__(self):
428
425
  output = "\n\n".join(str(result) for result in self.results)
@@ -528,8 +525,8 @@ class Exa:
528
525
  return SearchResponse(
529
526
  [Result(**to_snake_case(result)) for result in data["results"]],
530
527
  data["autopromptString"] if "autopromptString" in data else None,
531
- data["autoDate"] if "autoDate" in data else None,
532
528
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
529
+ data["autoDate"] if "autoDate" in data else None,
533
530
  )
534
531
 
535
532
  @overload
@@ -863,6 +860,7 @@ class Exa:
863
860
  [Result(**to_snake_case(result)) for result in data["results"]],
864
861
  data["autopromptString"] if "autopromptString" in data else None,
865
862
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
863
+ data["autoDate"] if "autoDate" in data else None,
866
864
  )
867
865
 
868
866
  def find_similar(
@@ -889,6 +887,7 @@ class Exa:
889
887
  [Result(**to_snake_case(result)) for result in data["results"]],
890
888
  data["autopromptString"] if "autopromptString" in data else None,
891
889
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
890
+ data["autoDate"] if "autoDate" in data else None,
892
891
  )
893
892
 
894
893
  @overload
@@ -1097,6 +1096,7 @@ class Exa:
1097
1096
  [Result(**to_snake_case(result)) for result in data["results"]],
1098
1097
  data["autopromptString"] if "autopromptString" in data else None,
1099
1098
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
1099
+ data["autoDate"] if "autoDate" in data else None,
1100
1100
  )
1101
1101
 
1102
1102
  def wrap(self, client: OpenAI):
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
- Name: exa_py
3
- Version: 1.1.1
2
+ Name: exa-py
3
+ Version: 1.1.3
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
7
7
  Author-email: hello@exa.ai
8
+ License: UNKNOWN
9
+ Platform: UNKNOWN
8
10
  Classifier: Development Status :: 5 - Production/Stable
9
11
  Classifier: Intended Audience :: Developers
10
12
  Classifier: License :: OSI Approved :: MIT License
@@ -15,9 +17,6 @@ Classifier: Programming Language :: Python :: 3.10
15
17
  Classifier: Programming Language :: Python :: 3.11
16
18
  Classifier: Programming Language :: Python :: 3.12
17
19
  Description-Content-Type: text/markdown
18
- Requires-Dist: requests
19
- Requires-Dist: typing-extensions
20
- Requires-Dist: openai>=1.10.0
21
20
 
22
21
  # Exa
23
22
 
@@ -92,3 +91,5 @@ exa = Exa(api_key="your-api-key")
92
91
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
93
92
  ```
94
93
 
94
+
95
+
@@ -11,14 +11,15 @@ requests = "^2.32.3"
11
11
  typing-extensions = "^4.12.2"
12
12
  openai = "^1.10"
13
13
 
14
-
15
14
  [tool.poetry.group.dev.dependencies]
16
15
  python-dotenv = "^1.0.1"
17
16
  setuptools = "^74.0.0"
18
17
  docutils = "^0.21.2"
19
18
  twine = "^5.1.1"
20
19
 
21
-
22
20
  [build-system]
23
21
  requires = ["poetry-core"]
24
22
  build-backend = "poetry.core.masonry.api"
23
+
24
+ [virtualenvs]
25
+ in-project = true
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="exa_py",
5
- version="1.1.1",
5
+ version="1.1.3",
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