Sapienta Python SDK
Official Python SDK for integrating Sapienta AI into your applications.
Installation
pip install sapienta
Usage
from sapienta import Sapienta
client = Sapienta("YOUR_API_KEY")
response = client.chat("Hello!")
print(response.content)
print(response.completion_tokens)
print(response.prompt_tokens)
print(response.total_tokens)
API Key
Contact the Sapienta team to obtain your API key.
Requirements
Python 3.9 or later.
License
Proprietary. All rights reserved.
Metadata
Release files for sapienta 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sapienta-0.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sapienta-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / sapienta-0.1.0.tar.gz
| Download URL | sapienta-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f64a020e5e7fea36c56c269cd638b64fb3c4354db4a43bd2e545fa71c158b10
|
|
BLAKE2b-256 checksum How to use checksums |
9b5bf264d80bbb5acc0d45ef02b7d85292e9d6899d72622558b5310346fbf251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / sapienta-0.1.0-py3-none-any.whl
| Download URL | sapienta-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7655fc65df131bd87082824e83c5f47867789976dbfdc98908902fd28d392ccc
|
|
BLAKE2b-256 checksum How to use checksums |
dc9fc0b29712b902c93ee8741d237962c915f61ecd5a2bdd80756739e1e8e746
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|