tavily-python 0.1.1__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.
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.1
2
+ Name: tavily-python
3
+ Version: 0.1.1
4
+ Summary: Python wrapper for the Tavily API
5
+ Home-page: https://github.com/assafelovic/tavily-python
6
+ Author: Assaf Elovic
7
+ Author-email: assaf.elovic@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/x-rst
13
+ Requires-Dist: requests
14
+
15
+ ======================
16
+ Tavily Python Wrapper
17
+ ======================
18
+
19
+ This Python wrapper allows for easy interaction with the Tavily API, providing both basic and advanced search functionalities directly from your Python programs. Easily integrate smart search capabilities into your applications, utilizing Tavily's powerful search features.
20
+
21
+ Installing
22
+ ==========
23
+
24
+ .. code-block:: bash
25
+
26
+ pip install tavily-python
27
+
28
+ Usage
29
+ =====
30
+
31
+ .. code-block:: python
32
+
33
+ from tavily import Client
34
+ search = Client(api_key="YOUR_API_KEY")
35
+ search.basic_search(query="Should I invest in Apple in 2024?", include_raw_content=True)
36
+
37
+ API Methods
38
+ ===========
39
+
40
+ Client
41
+ ------
42
+
43
+ The ``Client`` class is the entry point to interacting with the Tavily API. Instantiate it with your API key to get started.
44
+
45
+ Methods
46
+ -------
47
+
48
+ - ``basic_search(query, **kwargs)``: Performs a basic, smart search optimized for performance (quick response time) the specified query and additional parameters as keyword arguments.
49
+
50
+ - ``advanced_search(query, **kwargs)``: Performs an advanced, in-depth search optimized for quality (factual and unbiased) with the specified query and additional parameters as keyword arguments.
51
+
52
+ Keyword Arguments
53
+ -----------------
54
+
55
+ - ``search_depth`` (str): The depth of the search. It can be "basic" or "advanced". Default is "basic" for `basic_search` and "advanced" for `advanced_search`.
56
+
57
+ - ``num_results`` (int): The number of search results to return. Default is 5.
58
+
59
+ - ``include_domains`` (list): A list of domains to specifically include in the search results. Default is None, which includes all domains.
60
+
61
+ - ``exclude_domains`` (list): A list of domains to specifically exclude from the search results. Default is None, which does not exclude any domains.
62
+
63
+ - ``include_answer`` (bool): Whether or not to include answers in the search results. Default is False.
64
+
65
+ - ``include_raw_content`` (bool): Whether or not to include raw content in the search results. Default is False.
66
+
67
+ Both methods internally use the ``_search`` method to communicate with the API.
68
+
69
+ Error Handling
70
+ ==============
71
+
72
+ In case of an unsuccessful HTTP request, a ``HTTPError`` will be raised.
73
+
74
+ License
75
+ =======
76
+
77
+ This project is licensed under the terms of the MIT license.
78
+
79
+ Contact
80
+ =======
81
+
82
+ For questions, support, or to learn more, please visit `Tavily <http://tavily.com>`_.
@@ -0,0 +1,4 @@
1
+ tavily_python-0.1.1.dist-info/METADATA,sha256=0s8iyqNWEpTudxmPzkVqcHHh1rOykGTSQrkQgH8RNkc,2800
2
+ tavily_python-0.1.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
3
+ tavily_python-0.1.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
+ tavily_python-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+