exa-py 1.0.15__py3-none-any.whl → 1.0.16__py3-none-any.whl

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/api.py CHANGED
@@ -94,6 +94,10 @@ SEARCH_OPTIONS_TYPES = {
94
94
  "end_published_date": [
95
95
  str
96
96
  ], # Results before this publish date; excludes links with no date. ISO 8601 format.
97
+ "include_text": [
98
+ list
99
+ ], # list of strings that must be present in webpage text of results. Currently, only one string is supported, up to 5 words.
100
+ "exclude_text": [list], # list of strings that must not be present in webpage text of result. Currently, only one string is supported, up to 5 words.
97
101
  "use_autoprompt": [bool], # Convert query to Exa (Higher latency, Default: false).
98
102
  "type": [
99
103
  str
@@ -112,6 +116,8 @@ FIND_SIMILAR_OPTIONS_TYPES = {
112
116
  "end_crawl_date": [str],
113
117
  "start_published_date": [str],
114
118
  "end_published_date": [str],
119
+ "include_text": [list],
120
+ "exclude_text": [list],
115
121
  "exclude_source_domain": [bool],
116
122
  "category": [str],
117
123
  }
@@ -424,7 +430,7 @@ class Exa:
424
430
  self,
425
431
  api_key: Optional[str],
426
432
  base_url: str = "https://api.exa.ai",
427
- user_agent: str = "exa-py 1.0.15",
433
+ user_agent: str = "exa-py 1.0.16",
428
434
  ):
429
435
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
430
436
 
@@ -462,6 +468,8 @@ class Exa:
462
468
  end_crawl_date: Optional[str] = None,
463
469
  start_published_date: Optional[str] = None,
464
470
  end_published_date: Optional[str] = None,
471
+ include_text: Optional[List[str]] = None,
472
+ exclude_text: Optional[List[str]] = None,
465
473
  use_autoprompt: Optional[bool] = None,
466
474
  type: Optional[str] = None,
467
475
  category: Optional[str] = None,
@@ -477,6 +485,8 @@ class Exa:
477
485
  end_crawl_date (str, optional): Results will only include links crawled before this date.
478
486
  start_published_date (str, optional): Results will only include links with a published date after this date.
479
487
  end_published_date (str, optional): Results will only include links with a published date before this date.
488
+ include_text (List[str], optional): List of strings that must be present in the webpage text of results. Currently, only one string is supported, up to 5 words.
489
+ exclude_text (List[str], optional): List of strings that must not be present in the webpage text of results. Currently, only one string is supported, up to 5 words.
480
490
  use_autoprompt (bool, optional): If true, convert query to a Exa query. Defaults to False.
481
491
  type (str, optional): The type of search, 'keyword' or 'neural'. Defaults to "neural".
482
492
  category (str, optional): A data category to focus on, with higher comprehensivity and data cleanliness. Currently, the only category is company.
@@ -504,6 +514,8 @@ class Exa:
504
514
  end_crawl_date: Optional[str] = None,
505
515
  start_published_date: Optional[str] = None,
506
516
  end_published_date: Optional[str] = None,
517
+ include_text: Optional[List[str]] = None,
518
+ exclude_text: Optional[List[str]] = None,
507
519
  use_autoprompt: Optional[bool] = None,
508
520
  type: Optional[str] = None,
509
521
  category: Optional[str] = None,
@@ -523,6 +535,8 @@ class Exa:
523
535
  end_crawl_date: Optional[str] = None,
524
536
  start_published_date: Optional[str] = None,
525
537
  end_published_date: Optional[str] = None,
538
+ include_text: Optional[List[str]] = None,
539
+ exclude_text: Optional[List[str]] = None,
526
540
  use_autoprompt: Optional[bool] = None,
527
541
  type: Optional[str] = None,
528
542
  category: Optional[str] = None,
@@ -542,6 +556,8 @@ class Exa:
542
556
  end_crawl_date: Optional[str] = None,
543
557
  start_published_date: Optional[str] = None,
544
558
  end_published_date: Optional[str] = None,
559
+ include_text: Optional[List[str]] = None,
560
+ exclude_text: Optional[List[str]] = None,
545
561
  use_autoprompt: Optional[bool] = None,
546
562
  type: Optional[str] = None,
547
563
  category: Optional[str] = None,
@@ -562,6 +578,8 @@ class Exa:
562
578
  end_crawl_date: Optional[str] = None,
563
579
  start_published_date: Optional[str] = None,
564
580
  end_published_date: Optional[str] = None,
581
+ include_text: Optional[List[str]] = None,
582
+ exclude_text: Optional[List[str]] = None,
565
583
  use_autoprompt: Optional[bool] = None,
566
584
  type: Optional[str] = None,
567
585
  category: Optional[str] = None,
@@ -581,6 +599,8 @@ class Exa:
581
599
  end_crawl_date: Optional[str] = None,
582
600
  start_published_date: Optional[str] = None,
583
601
  end_published_date: Optional[str] = None,
602
+ include_text: Optional[List[str]] = None,
603
+ exclude_text: Optional[List[str]] = None,
584
604
  use_autoprompt: Optional[bool] = None,
585
605
  type: Optional[str] = None,
586
606
  category: Optional[str] = None,
@@ -601,6 +621,8 @@ class Exa:
601
621
  end_crawl_date: Optional[str] = None,
602
622
  start_published_date: Optional[str] = None,
603
623
  end_published_date: Optional[str] = None,
624
+ include_text: Optional[List[str]] = None,
625
+ exclude_text: Optional[List[str]] = None,
604
626
  use_autoprompt: Optional[bool] = None,
605
627
  type: Optional[str] = None,
606
628
  category: Optional[str] = None,
@@ -621,6 +643,8 @@ class Exa:
621
643
  end_crawl_date: Optional[str] = None,
622
644
  start_published_date: Optional[str] = None,
623
645
  end_published_date: Optional[str] = None,
646
+ include_text: Optional[List[str]] = None,
647
+ exclude_text: Optional[List[str]] = None,
624
648
  use_autoprompt: Optional[bool] = None,
625
649
  type: Optional[str] = None,
626
650
  category: Optional[str] = None,
@@ -642,6 +666,8 @@ class Exa:
642
666
  end_crawl_date: Optional[str] = None,
643
667
  start_published_date: Optional[str] = None,
644
668
  end_published_date: Optional[str] = None,
669
+ include_text: Optional[List[str]] = None,
670
+ exclude_text: Optional[List[str]] = None,
645
671
  use_autoprompt: Optional[bool] = None,
646
672
  type: Optional[str] = None,
647
673
  category: Optional[str] = None,
@@ -769,6 +795,8 @@ class Exa:
769
795
  end_crawl_date: Optional[str] = None,
770
796
  start_published_date: Optional[str] = None,
771
797
  end_published_date: Optional[str] = None,
798
+ include_text: Optional[List[str]] = None,
799
+ exclude_text: Optional[List[str]] = None,
772
800
  exclude_source_domain: Optional[bool] = None,
773
801
  category: Optional[str] = None,
774
802
  ) -> SearchResponse[_Result]:
@@ -793,6 +821,8 @@ class Exa:
793
821
  end_crawl_date: Optional[str] = None,
794
822
  start_published_date: Optional[str] = None,
795
823
  end_published_date: Optional[str] = None,
824
+ include_text: Optional[List[str]] = None,
825
+ exclude_text: Optional[List[str]] = None,
796
826
  exclude_source_domain: Optional[bool] = None,
797
827
  category: Optional[str] = None,
798
828
  ) -> SearchResponse[ResultWithText]:
@@ -811,6 +841,8 @@ class Exa:
811
841
  end_crawl_date: Optional[str] = None,
812
842
  start_published_date: Optional[str] = None,
813
843
  end_published_date: Optional[str] = None,
844
+ include_text: Optional[List[str]] = None,
845
+ exclude_text: Optional[List[str]] = None,
814
846
  exclude_source_domain: Optional[bool] = None,
815
847
  category: Optional[str] = None,
816
848
  ) -> SearchResponse[ResultWithText]:
@@ -829,6 +861,8 @@ class Exa:
829
861
  end_crawl_date: Optional[str] = None,
830
862
  start_published_date: Optional[str] = None,
831
863
  end_published_date: Optional[str] = None,
864
+ include_text: Optional[List[str]] = None,
865
+ exclude_text: Optional[List[str]] = None,
832
866
  exclude_source_domain: Optional[bool] = None,
833
867
  category: Optional[str] = None,
834
868
  ) -> SearchResponse[ResultWithHighlights]:
@@ -848,6 +882,8 @@ class Exa:
848
882
  end_crawl_date: Optional[str] = None,
849
883
  start_published_date: Optional[str] = None,
850
884
  end_published_date: Optional[str] = None,
885
+ include_text: Optional[List[str]] = None,
886
+ exclude_text: Optional[List[str]] = None,
851
887
  exclude_source_domain: Optional[bool] = None,
852
888
  category: Optional[str] = None,
853
889
  ) -> SearchResponse[ResultWithTextAndHighlights]:
@@ -866,6 +902,8 @@ class Exa:
866
902
  end_crawl_date: Optional[str] = None,
867
903
  start_published_date: Optional[str] = None,
868
904
  end_published_date: Optional[str] = None,
905
+ include_text: Optional[List[str]] = None,
906
+ exclude_text: Optional[List[str]] = None,
869
907
  exclude_source_domain: Optional[bool] = None,
870
908
  category: Optional[str] = None,
871
909
  ) -> SearchResponse[ResultWithSummary]:
@@ -885,6 +923,8 @@ class Exa:
885
923
  end_crawl_date: Optional[str] = None,
886
924
  start_published_date: Optional[str] = None,
887
925
  end_published_date: Optional[str] = None,
926
+ include_text: Optional[List[str]] = None,
927
+ exclude_text: Optional[List[str]] = None,
888
928
  exclude_source_domain: Optional[bool] = None,
889
929
  category: Optional[str] = None,
890
930
  ) -> SearchResponse[ResultWithTextAndSummary]:
@@ -904,6 +944,8 @@ class Exa:
904
944
  end_crawl_date: Optional[str] = None,
905
945
  start_published_date: Optional[str] = None,
906
946
  end_published_date: Optional[str] = None,
947
+ include_text: Optional[List[str]] = None,
948
+ exclude_text: Optional[List[str]] = None,
907
949
  exclude_source_domain: Optional[bool] = None,
908
950
  category: Optional[str] = None,
909
951
  ) -> SearchResponse[ResultWithHighlightsAndSummary]:
@@ -924,6 +966,8 @@ class Exa:
924
966
  end_crawl_date: Optional[str] = None,
925
967
  start_published_date: Optional[str] = None,
926
968
  end_published_date: Optional[str] = None,
969
+ include_text: Optional[List[str]] = None,
970
+ exclude_text: Optional[List[str]] = None,
927
971
  exclude_source_domain: Optional[bool] = None,
928
972
  category: Optional[str] = None,
929
973
  ) -> SearchResponse[ResultWithTextAndHighlightsAndSummary]:
@@ -979,6 +1023,8 @@ class Exa:
979
1023
  end_crawl_date: Optional[str] = None,
980
1024
  start_published_date: Optional[str] = None,
981
1025
  end_published_date: Optional[str] = None,
1026
+ include_text: Optional[List[str]] = None,
1027
+ exclude_text: Optional[List[str]] = None,
982
1028
  use_autoprompt: Optional[bool] = True,
983
1029
  type: Optional[str] = None,
984
1030
  category: Optional[str] = None,
@@ -995,6 +1041,8 @@ class Exa:
995
1041
  "end_crawl_date": end_crawl_date,
996
1042
  "start_published_date": start_published_date,
997
1043
  "end_published_date": end_published_date,
1044
+ "include_text": include_text,
1045
+ "exclude_text": exclude_text,
998
1046
  "use_autoprompt": use_autoprompt,
999
1047
  "type": type,
1000
1048
  "category": category,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa-py
3
- Version: 1.0.15
3
+ Version: 1.0.16
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -0,0 +1,8 @@
1
+ exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
2
+ exa_py/api.py,sha256=LqW57PJhA5y886dNf8ol2FTGgNxHe_07BPuv9cWwV8w,40903
3
+ exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
+ exa_py-1.0.16.dist-info/METADATA,sha256=rFUqsWG4J1je_KuQAxcjJXmNs-iUxssTgc_EyPa3S-g,3083
6
+ exa_py-1.0.16.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
7
+ exa_py-1.0.16.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
+ exa_py-1.0.16.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
2
- exa_py/api.py,sha256=QT0gp-cow6aDDmHJARIgKfi-TFUngxmpr4PWKVyYZRc,38176
3
- exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
- exa_py-1.0.15.dist-info/METADATA,sha256=agZ-1DeqIjSwZlWzrs2YOGN5DD_-QHGPMKHvgoEiFkY,3083
6
- exa_py-1.0.15.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
7
- exa_py-1.0.15.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
- exa_py-1.0.15.dist-info/RECORD,,