exa-py 1.1.2__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.
- {exa_py-1.1.2 → exa_py-1.1.3}/PKG-INFO +5 -4
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py/api.py +5 -2
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py.egg-info/PKG-INFO +6 -5
- {exa_py-1.1.2 → exa_py-1.1.3}/pyproject.toml +3 -2
- {exa_py-1.1.2 → exa_py-1.1.3}/setup.py +1 -1
- {exa_py-1.1.2 → exa_py-1.1.3}/README.md +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py/__init__.py +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py/py.typed +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py/utils.py +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py.egg-info/SOURCES.txt +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py.egg-info/dependency_links.txt +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py.egg-info/requires.txt +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/exa_py.egg-info/top_level.txt +0 -0
- {exa_py-1.1.2 → exa_py-1.1.3}/setup.cfg +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exa_py
|
|
3
|
-
Version: 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
|
+
|
|
@@ -418,8 +418,8 @@ class SearchResponse(Generic[T]):
|
|
|
418
418
|
|
|
419
419
|
results: List[T]
|
|
420
420
|
autoprompt_string: Optional[str]
|
|
421
|
-
auto_date: Optional[str]
|
|
422
421
|
resolved_search_type: Optional[str]
|
|
422
|
+
auto_date: Optional[str]
|
|
423
423
|
|
|
424
424
|
def __str__(self):
|
|
425
425
|
output = "\n\n".join(str(result) for result in self.results)
|
|
@@ -525,8 +525,8 @@ class Exa:
|
|
|
525
525
|
return SearchResponse(
|
|
526
526
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
527
527
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
528
|
-
data["autoDate"] if "autoDate" in data else None,
|
|
529
528
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
529
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
530
530
|
)
|
|
531
531
|
|
|
532
532
|
@overload
|
|
@@ -860,6 +860,7 @@ class Exa:
|
|
|
860
860
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
861
861
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
862
862
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
863
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
863
864
|
)
|
|
864
865
|
|
|
865
866
|
def find_similar(
|
|
@@ -886,6 +887,7 @@ class Exa:
|
|
|
886
887
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
887
888
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
888
889
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
890
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
889
891
|
)
|
|
890
892
|
|
|
891
893
|
@overload
|
|
@@ -1094,6 +1096,7 @@ class Exa:
|
|
|
1094
1096
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
1095
1097
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
1096
1098
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
1099
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
1097
1100
|
)
|
|
1098
1101
|
|
|
1099
1102
|
def wrap(self, client: OpenAI):
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|