select-ai 1.2.0rc3__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,129 @@
1
+ Metadata-Version: 2.4
2
+ Name: select_ai
3
+ Version: 1.2.0rc3
4
+ Summary: Select AI for Python
5
+ Author-email: Abhishek Singh <abhishek.o.singh@oracle.com>
6
+ Maintainer-email: Abhishek Singh <abhishek.o.singh@oracle.com>
7
+ License-Expression: UPL-1.0
8
+ Project-URL: Homepage, https://github.com/oracle/python-select-ai
9
+ Project-URL: Repository, https://github.com/oracle/python-select-ai
10
+ Project-URL: Issues, https://github.com/oracle/python-select-ai/issues
11
+ Project-URL: Documentation, https://oracle.github.io/python-select-ai/
12
+ Keywords: oracle,select-ai,adbs,autonomous database serverless
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Natural Language :: English
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Programming Language :: Python :: Implementation :: CPython
25
+ Classifier: Topic :: Database
26
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Requires-Python: >=3.9
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE.txt
31
+ Requires-Dist: oracledb
32
+ Requires-Dist: pandas==2.2.3
33
+ Provides-Extra: test
34
+ Requires-Dist: anyio; extra == "test"
35
+ Requires-Dist: pytest; extra == "test"
36
+ Dynamic: license-file
37
+
38
+ # Select AI for Python
39
+
40
+
41
+ Select AI for Python enables you to ask questions of your database data using natural language (text-to-SQL), get generative AI responses using your trusted content (retrieval augmented generation), generate synthetic data using large language models, and other features – all from Python. With the general availability of Select AI Python, Python developers have access to the functionality of Select AI on Oracle Autonomous Database.
42
+
43
+ Select AI for Python enables you to leverage the broader Python ecosystem in combination with generative AI and database functionality - bridging the gap between the DBMS_CLOUD_AI PL/SQL package and Python's rich ecosystem. It provides intuitive objects and methods for AI model interaction.
44
+
45
+
46
+ ## Installation
47
+
48
+ Run
49
+ ```bash
50
+ python3 -m pip install select_ai
51
+ ```
52
+
53
+ ## Documentation
54
+
55
+ See [Select AI for Python documentation][documentation]
56
+
57
+ ## Samples
58
+
59
+ Examples can be found in the [/samples][samples] directory
60
+
61
+ ### Basic Example
62
+
63
+ ```python
64
+ import select_ai
65
+
66
+ user = "<your_select_ai_user>"
67
+ password = "<your_select_ai_password>"
68
+ dsn = "<your_select_ai_db_connect_string>"
69
+
70
+ select_ai.connect(user=user, password=password, dsn=dsn)
71
+ profile = select_ai.Profile(profile_name="oci_ai_profile")
72
+ # run_sql returns a pandas dataframe
73
+ df = profile.run_sql(prompt="How many promotions?")
74
+ print(df.columns)
75
+ print(df)
76
+ ```
77
+
78
+ ### Async Example
79
+
80
+ ```python
81
+
82
+ import asyncio
83
+
84
+ import select_ai
85
+
86
+ user = "<your_select_ai_user>"
87
+ password = "<your_select_ai_password>"
88
+ dsn = "<your_select_ai_db_connect_string>"
89
+
90
+ # This example shows how to asynchronously run sql
91
+ async def main():
92
+ await select_ai.async_connect(user=user, password=password, dsn=dsn)
93
+ async_profile = await select_ai.AsyncProfile(
94
+ profile_name="async_oci_ai_profile",
95
+ )
96
+ # run_sql returns a pandas df
97
+ df = await async_profile.run_sql("How many promotions?")
98
+ print(df)
99
+
100
+ asyncio.run(main())
101
+
102
+ ```
103
+ ## Help
104
+
105
+ Questions can be asked in [GitHub Discussions][ghdiscussions].
106
+
107
+ Problem reports can be raised in [GitHub Issues][ghissues].
108
+
109
+ ## Contributing
110
+
111
+ This project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide][contributing]
112
+
113
+ ## Security
114
+
115
+ Please consult the [security guide][security] for our responsible security vulnerability disclosure process
116
+
117
+ ## License
118
+
119
+ Copyright (c) 2025 Oracle and/or its affiliates.
120
+
121
+ Released under the Universal Permissive License v1.0 as shown at
122
+ <https://oss.oracle.com/licenses/upl/>.
123
+
124
+ [contributing]: https://github.com/oracle/python-select-ai/blob/main/CONTRIBUTING.md
125
+ [documentation]: https://oracle.github.io/python-select-ai/
126
+ [ghdiscussions]: https://github.com/oracle/python-select-ai/discussions
127
+ [ghissues]: https://github.com/oracle/python-select-ai/issues
128
+ [samples]: https://github.com/oracle/python-select-ai/tree/main/samples
129
+ [security]: https://github.com/oracle/python-select-ai/blob/main/SECURITY.md
@@ -0,0 +1,31 @@
1
+ select_ai/__init__.py,sha256=sLJ5RsPmqbwEQjfP3udpBl0dhBWXR1M25d0oC-t-A20,1619
2
+ select_ai/_abc.py,sha256=F8aHBsIvuea1HvcqyfFnNTNOoJGYXpOT7rHhdrHegcA,2666
3
+ select_ai/_enums.py,sha256=U0UavuE4pbRY-0-Qb8z-F7KfxU0YUfOgUahaSjDi0dU,416
4
+ select_ai/_validations.py,sha256=flMtAhYE-H2hgLdKNf26Lfs0mzISJZOXPIvrAXjC1Og,3959
5
+ select_ai/action.py,sha256=tFg30TBJgqbXFJj8j8xKPc6ca081JDponvrkKAgdRfA,646
6
+ select_ai/async_profile.py,sha256=x1sG-YB05Ef1yvMBq8-OkL5aX5WBWiq8Nur98dUwnbo,22637
7
+ select_ai/base_profile.py,sha256=msEoUPFcI144t8d2NJhsLQ_0am3giBR2Yk5ok98gzxk,9632
8
+ select_ai/conversation.py,sha256=qpORsPwIAxu8s2wxFQ-KLOrDGkyYqAXFS2X7Sj96MNQ,10421
9
+ select_ai/credential.py,sha256=cDIsiPgjbvckbOfb2LeoztPUsDO-6cJ_S8DzYT3pm4k,4220
10
+ select_ai/db.py,sha256=ht3aK9Npm806oxVDy6xkPs7lLsWhkqqMGvx87hhBGf4,4811
11
+ select_ai/errors.py,sha256=06mKo0Z2lipzIsPIxVUXhbF3Vw4tRqzHOzZfv5xbyv4,3104
12
+ select_ai/feedback.py,sha256=pDmOXHkF-Gnejo8xYCo9ezkc19ZqYoAXb_KJ2jJQre8,516
13
+ select_ai/privilege.py,sha256=o7bi1I6ED1qAbZBG6NjYYaiXDKmUDhK7Gkiwn80rfsQ,3831
14
+ select_ai/profile.py,sha256=re1Z7NlGFNZvykAbXPq0xb0AVm6_UtAb5b9DMZpVbQw,20162
15
+ select_ai/provider.py,sha256=1eDCkVys6jW6oVza6Jmad3b0GA6o5aGFsTrir7n1M9k,5358
16
+ select_ai/sql.py,sha256=UBINldCDBQ3iswtA9F4CB6JntvmT8AdYd6_gvB8twBE,2880
17
+ select_ai/summary.py,sha256=gBpL8RR-a5ndgN8A9DZ0vRC473PWVNzhny07dL0Tc7Q,1801
18
+ select_ai/synthetic_data.py,sha256=fClMI6ue2rNqzjY9TfeLA0_w1iPOahb08Y-1-gYzwzs,3305
19
+ select_ai/vector_index.py,sha256=qnvhmlmbibDiCVUk21dRdaij3GVF7NbsHRwA5Y9lR_U,23291
20
+ select_ai/version.py,sha256=iX6P-X9mSb0ErfsaR4sN8z0gxhbrwHe7ySZDW2GAPkg,346
21
+ select_ai/agent/__init__.py,sha256=8NVACs3wW8AdXcyQFzUsb5_ZmoIp0ZO_71VGkBSiZd8,742
22
+ select_ai/agent/core.py,sha256=18pafEt-PnZWThD8mCp6aycluoR6cRr-d3Zb1NHdxsI,16509
23
+ select_ai/agent/sql.py,sha256=yOOjO0CQ2qeBmWUR4RP4Jif0C7SlmnhppOYsc9pd-70,2062
24
+ select_ai/agent/task.py,sha256=r4ZvBfIGQz3BfFEziIvhgufBYnkchmUpcEfXx7jRHQE,16661
25
+ select_ai/agent/team.py,sha256=6EtYiW8XlTia2j2EvYoSUItXBuylDe3GomIaZL8uc_w,19327
26
+ select_ai/agent/tool.py,sha256=HpiPwkRuZMHi89D_hjl9j6NsxSCg5T6L4ZHg6uEyRpQ,35312
27
+ select_ai-1.2.0rc3.dist-info/licenses/LICENSE.txt,sha256=_0VqOxSjO1hu6JexZDVzqUXSmzH1A53EOfyiJzXTBKc,1840
28
+ select_ai-1.2.0rc3.dist-info/METADATA,sha256=o4hi2rPb6JH4I0p5wLC1yeY0CgqslTarxX5X3U-xbzs,4572
29
+ select_ai-1.2.0rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
+ select_ai-1.2.0rc3.dist-info/top_level.txt,sha256=u_QUAHDibro58Lvi_MU6a9Wc6VfQT8HEQm0cciMTP-c,10
31
+ select_ai-1.2.0rc3.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,35 @@
1
+ Copyright (c) 2025, Oracle and/or its affiliates.
2
+
3
+ The Universal Permissive License (UPL), Version 1.0
4
+
5
+ Subject to the condition set forth below, permission is hereby granted to any
6
+ person obtaining a copy of this software, associated documentation and/or data
7
+ (collectively the "Software"), free of charge and under any and all copyright
8
+ rights in the Software, and any and all patent rights owned or freely
9
+ licensable by each licensor hereunder covering either (i) the unmodified
10
+ Software as contributed to or provided by such licensor, or (ii) the Larger
11
+ Works (as defined below), to deal in both
12
+
13
+ (a) the Software, and
14
+ (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15
+ one is included with the Software (each a "Larger Work" to which the Software
16
+ is contributed by such licensors),
17
+
18
+ without restriction, including without limitation the rights to copy, create
19
+ derivative works of, display, perform, and distribute the Software and make,
20
+ use, sell, offer for sale, import, export, have made, and have sold the
21
+ Software and the Larger Work(s), and to sublicense the foregoing rights on
22
+ either these or other terms.
23
+
24
+ This license is subject to the following condition:
25
+ The above copyright notice and either this complete permission notice or at
26
+ a minimum a reference to the UPL must be included in all copies or
27
+ substantial portions of the Software.
28
+
29
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ select_ai