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.2

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.2
File Size Uploaded
sapienta-0.1.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sapienta 0.1.2
File Interpreter ABI Platform
sapienta-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / sapienta-0.1.2.tar.gz

Download URL sapienta-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c8c283d11ae42d30cbd9626011ba6b3a62f243be7ad91ad63cf45b664245f661
BLAKE2b-256 checksum
How to use checksums
126c26ce05bcace2ecaaff6ebb04319192fbebc34a717d0e427151a13181bb71
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.2-py3-none-any.whl

Download URL sapienta-0.1.2-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f33473fc50be73c9cd01c672f0737c1ea2be986c808e3f2f00a15a90ea2988fd
BLAKE2b-256 checksum
How to use checksums
e5010921984fa73bb49c47c249deb8d18aabf0e80f3d5bb9ac9a7bae86f2da45
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

0.1.3

2 release files

This release

0.1.2 This release

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