exa-py 1.1.2__tar.gz → 1.1.4__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.2
3
+ Version: 1.1.4
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
+
@@ -143,10 +143,11 @@ CONTENTS_OPTIONS_TYPES = {
143
143
  LIVECRAWL_OPTIONS = Literal["always", "fallback", "never"]
144
144
  CONTENTS_OPTIONS_TYPES["livecrawl_timeout"] = [int]
145
145
  CONTENTS_OPTIONS_TYPES["livecrawl"] = [LIVECRAWL_OPTIONS]
146
+ CONTENTS_OPTIONS_TYPES["filter_empty_results"] = [bool]
146
147
 
147
- if is_beta:
148
- CONTENTS_OPTIONS_TYPES["filter_empty_results"] = [bool]
149
-
148
+ # FOR BETA OPTIONS
149
+ # if is_beta:
150
+
150
151
 
151
152
  def validate_search_options(
152
153
  options: Dict[str, Optional[object]], expected: dict
@@ -418,8 +419,8 @@ class SearchResponse(Generic[T]):
418
419
 
419
420
  results: List[T]
420
421
  autoprompt_string: Optional[str]
421
- auto_date: Optional[str]
422
422
  resolved_search_type: Optional[str]
423
+ auto_date: Optional[str]
423
424
 
424
425
  def __str__(self):
425
426
  output = "\n\n".join(str(result) for result in self.results)
@@ -525,8 +526,8 @@ class Exa:
525
526
  return SearchResponse(
526
527
  [Result(**to_snake_case(result)) for result in data["results"]],
527
528
  data["autopromptString"] if "autopromptString" in data else None,
528
- data["autoDate"] if "autoDate" in data else None,
529
529
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
530
+ data["autoDate"] if "autoDate" in data else None,
530
531
  )
531
532
 
532
533
  @overload
@@ -860,6 +861,7 @@ class Exa:
860
861
  [Result(**to_snake_case(result)) for result in data["results"]],
861
862
  data["autopromptString"] if "autopromptString" in data else None,
862
863
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
864
+ data["autoDate"] if "autoDate" in data else None,
863
865
  )
864
866
 
865
867
  def find_similar(
@@ -886,6 +888,7 @@ class Exa:
886
888
  [Result(**to_snake_case(result)) for result in data["results"]],
887
889
  data["autopromptString"] if "autopromptString" in data else None,
888
890
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
891
+ data["autoDate"] if "autoDate" in data else None,
889
892
  )
890
893
 
891
894
  @overload
@@ -1094,6 +1097,7 @@ class Exa:
1094
1097
  [Result(**to_snake_case(result)) for result in data["results"]],
1095
1098
  data["autopromptString"] if "autopromptString" in data else None,
1096
1099
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
1100
+ data["autoDate"] if "autoDate" in data else None,
1097
1101
  )
1098
1102
 
1099
1103
  def wrap(self, client: OpenAI):
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
- Name: exa_py
3
- Version: 1.1.2
2
+ Name: exa-py
3
+ Version: 1.1.4
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.2",
5
+ version="1.1.4",
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