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.3
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.3.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sapienta-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / sapienta-0.1.3.tar.gz
| Download URL | sapienta-0.1.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2ae6b74e8e083fdb0d3608394ce08c55b0e3c88cebd30eac9c9ae32314bc86b
|
|
BLAKE2b-256 checksum How to use checksums |
33fbd72b499c2610376e00d978fbd36921aec8168ff9650982067651b753e7dd
|
| 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.3-py3-none-any.whl
| Download URL | sapienta-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ee0008a6dcfc3e12ab3374dd299c8ddd13753f5fabd266b3e5c720e976d3666
|
|
BLAKE2b-256 checksum How to use checksums |
cce94cee9bc62a2c9ef14f5743a1c97870a3a7ff297b0133e522960076c23f18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|