exa-py 1.4.0__tar.gz → 1.4.1b0__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.4.0
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
@@ -146,6 +146,11 @@ CONTENTS_OPTIONS_TYPES = {
146
146
  "filter_empty_results": [bool],
147
147
  }
148
148
 
149
+ CONTENTS_ENDPOINT_OPTIONS_TYPES = {
150
+ "subpages": [int], # Number of subpages to get contents for; these will appear as additional content results
151
+ "subpage_target": [str, list] # Specific subpage(s) to get contents for
152
+ }
153
+
149
154
  # FOR BETA OPTIONS
150
155
  # if is_beta:
151
156
 
@@ -477,7 +482,7 @@ class Exa:
477
482
  self,
478
483
  api_key: Optional[str],
479
484
  base_url: str = "https://api.exa.ai",
480
- user_agent: str = "exa-py 1.4.0",
485
+ user_agent: str = "exa-py 1.4.1-beta",
481
486
  ):
482
487
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
483
488
 
@@ -775,6 +780,8 @@ class Exa:
775
780
  livecrawl_timeout: Optional[int] = None,
776
781
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
777
782
  filter_empty_results: Optional[bool] = None,
783
+ subpages: Optional[int] = None,
784
+ subpage_target: Optional[Union[str, List[str]]] = None
778
785
  ) -> SearchResponse[ResultWithText]:
779
786
  ...
780
787
 
@@ -787,6 +794,8 @@ class Exa:
787
794
  livecrawl_timeout: Optional[int] = None,
788
795
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
789
796
  filter_empty_results: Optional[bool] = None,
797
+ subpages: Optional[int] = None,
798
+ subpage_target: Optional[Union[str, List[str]]] = None
790
799
  ) -> SearchResponse[ResultWithText]:
791
800
  ...
792
801
 
@@ -799,6 +808,8 @@ class Exa:
799
808
  livecrawl_timeout: Optional[int] = None,
800
809
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
801
810
  filter_empty_results: Optional[bool] = None,
811
+ subpages: Optional[int] = None,
812
+ subpage_target: Optional[Union[str, List[str]]] = None
802
813
  ) -> SearchResponse[ResultWithHighlights]:
803
814
  ...
804
815
 
@@ -812,6 +823,8 @@ class Exa:
812
823
  livecrawl_timeout: Optional[int] = None,
813
824
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
814
825
  filter_empty_results: Optional[bool] = None,
826
+ subpages: Optional[int] = None,
827
+ subpage_target: Optional[Union[str, List[str]]] = None
815
828
  ) -> SearchResponse[ResultWithTextAndHighlights]:
816
829
  ...
817
830
 
@@ -824,6 +837,8 @@ class Exa:
824
837
  livecrawl_timeout: Optional[int] = None,
825
838
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
826
839
  filter_empty_results: Optional[bool] = None,
840
+ subpages: Optional[int] = None,
841
+ subpage_target: Optional[Union[str, List[str]]] = None
827
842
  ) -> SearchResponse[ResultWithSummary]:
828
843
  ...
829
844
 
@@ -837,6 +852,8 @@ class Exa:
837
852
  livecrawl_timeout: Optional[int] = None,
838
853
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
839
854
  filter_empty_results: Optional[bool] = None,
855
+ subpages: Optional[int] = None,
856
+ subpage_target: Optional[Union[str, List[str]]] = None
840
857
  ) -> SearchResponse[ResultWithTextAndSummary]:
841
858
  ...
842
859
 
@@ -850,6 +867,8 @@ class Exa:
850
867
  livecrawl_timeout: Optional[int] = None,
851
868
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
852
869
  filter_empty_results: Optional[bool] = None,
870
+ subpages: Optional[int] = None,
871
+ subpage_target: Optional[Union[str, List[str]]] = None
853
872
  ) -> SearchResponse[ResultWithHighlightsAndSummary]:
854
873
  ...
855
874
 
@@ -864,6 +883,8 @@ class Exa:
864
883
  livecrawl_timeout: Optional[int] = None,
865
884
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
866
885
  filter_empty_results: Optional[bool] = None,
886
+ subpages: Optional[int] = None,
887
+ subpage_target: Optional[Union[str, List[str]]] = None
867
888
  ) -> SearchResponse[ResultWithTextAndHighlightsAndSummary]:
868
889
  ...
869
890
 
@@ -875,7 +896,7 @@ class Exa:
875
896
  }
876
897
  if "text" not in options and "highlights" not in options and "summary" not in options:
877
898
  options["text"] = True
878
- validate_search_options(options, {**CONTENTS_OPTIONS_TYPES})
899
+ validate_search_options(options, {**CONTENTS_OPTIONS_TYPES, **CONTENTS_ENDPOINT_OPTIONS_TYPES})
879
900
  options = to_camel_case(options)
880
901
  data = self.request("/contents", options)
881
902
  return SearchResponse(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.4.0
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="exa_py",
5
- version="1.4.0",
5
+ version="1.4.1-beta",
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
File without changes