Skip to main content

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)

Source distribution for sapienta 0.1.3
File Size Uploaded
sapienta-0.1.3.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sapienta 0.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page