exa-py 1.2.0__tar.gz → 1.3.0b0__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.2.0
3
+ Version: 1.3.0b0
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],
151
+ "subpage_target": [str, list]
152
+ }
153
+
149
154
  # FOR BETA OPTIONS
150
155
  # if is_beta:
151
156
 
@@ -233,7 +238,6 @@ class _Result:
233
238
  score: Optional[float] = None
234
239
  published_date: Optional[str] = None
235
240
  author: Optional[str] = None
236
- image: Optional[str] = None
237
241
 
238
242
  def __str__(self):
239
243
  return (
@@ -243,7 +247,6 @@ class _Result:
243
247
  f"Score: {self.score}\n"
244
248
  f"Published Date: {self.published_date}\n"
245
249
  f"Author: {self.author}\n"
246
- f"Image: {self.image}\n"
247
250
  )
248
251
 
249
252
 
@@ -468,7 +471,7 @@ class Exa:
468
471
  self,
469
472
  api_key: Optional[str],
470
473
  base_url: str = "https://api.exa.ai",
471
- user_agent: str = "exa-py 1.2.0",
474
+ user_agent: str = "exa-py 1.3.0-beta",
472
475
  ):
473
476
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
474
477
 
@@ -766,6 +769,8 @@ class Exa:
766
769
  livecrawl_timeout: Optional[int] = None,
767
770
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
768
771
  filter_empty_results: Optional[bool] = None,
772
+ subpages: Optional[int] = None,
773
+ subpage_target: Optional[Union[str, List[str]]] = None
769
774
  ) -> SearchResponse[ResultWithText]:
770
775
  ...
771
776
 
@@ -778,6 +783,8 @@ class Exa:
778
783
  livecrawl_timeout: Optional[int] = None,
779
784
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
780
785
  filter_empty_results: Optional[bool] = None,
786
+ subpages: Optional[int] = None,
787
+ subpage_target: Optional[Union[str, List[str]]] = None
781
788
  ) -> SearchResponse[ResultWithText]:
782
789
  ...
783
790
 
@@ -790,6 +797,8 @@ class Exa:
790
797
  livecrawl_timeout: Optional[int] = None,
791
798
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
792
799
  filter_empty_results: Optional[bool] = None,
800
+ subpages: Optional[int] = None,
801
+ subpage_target: Optional[Union[str, List[str]]] = None
793
802
  ) -> SearchResponse[ResultWithHighlights]:
794
803
  ...
795
804
 
@@ -803,6 +812,8 @@ class Exa:
803
812
  livecrawl_timeout: Optional[int] = None,
804
813
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
805
814
  filter_empty_results: Optional[bool] = None,
815
+ subpages: Optional[int] = None,
816
+ subpage_target: Optional[Union[str, List[str]]] = None
806
817
  ) -> SearchResponse[ResultWithTextAndHighlights]:
807
818
  ...
808
819
 
@@ -815,6 +826,8 @@ class Exa:
815
826
  livecrawl_timeout: Optional[int] = None,
816
827
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
817
828
  filter_empty_results: Optional[bool] = None,
829
+ subpages: Optional[int] = None,
830
+ subpage_target: Optional[Union[str, List[str]]] = None
818
831
  ) -> SearchResponse[ResultWithSummary]:
819
832
  ...
820
833
 
@@ -828,6 +841,8 @@ class Exa:
828
841
  livecrawl_timeout: Optional[int] = None,
829
842
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
830
843
  filter_empty_results: Optional[bool] = None,
844
+ subpages: Optional[int] = None,
845
+ subpage_target: Optional[Union[str, List[str]]] = None
831
846
  ) -> SearchResponse[ResultWithTextAndSummary]:
832
847
  ...
833
848
 
@@ -841,6 +856,8 @@ class Exa:
841
856
  livecrawl_timeout: Optional[int] = None,
842
857
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
843
858
  filter_empty_results: Optional[bool] = None,
859
+ subpages: Optional[int] = None,
860
+ subpage_target: Optional[Union[str, List[str]]] = None
844
861
  ) -> SearchResponse[ResultWithHighlightsAndSummary]:
845
862
  ...
846
863
 
@@ -855,6 +872,8 @@ class Exa:
855
872
  livecrawl_timeout: Optional[int] = None,
856
873
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
857
874
  filter_empty_results: Optional[bool] = None,
875
+ subpages: Optional[int] = None,
876
+ subpage_target: Optional[Union[str, List[str]]] = None
858
877
  ) -> SearchResponse[ResultWithTextAndHighlightsAndSummary]:
859
878
  ...
860
879
 
@@ -866,7 +885,7 @@ class Exa:
866
885
  }
867
886
  if "text" not in options and "highlights" not in options and "summary" not in options:
868
887
  options["text"] = True
869
- validate_search_options(options, {**CONTENTS_OPTIONS_TYPES})
888
+ validate_search_options(options, {**CONTENTS_OPTIONS_TYPES, **CONTENTS_ENDPOINT_OPTIONS_TYPES})
870
889
  options = to_camel_case(options)
871
890
  data = self.request("/contents", options)
872
891
  return SearchResponse(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.2.0
3
+ Version: 1.3.0b0
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.2.0",
5
+ version="1.3.0-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