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

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

Built distribution (wheel)

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

Total release size: 5.7 kB

Release files / sapienta-0.1.1.tar.gz

Download URL sapienta-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
882c05b4a58725474939972821d6bcbe4f814bf948d91830a570d7e72a7e88b8
BLAKE2b-256 checksum
How to use checksums
e95ffde87ed3ef9c84593dd2279bde3619501c8ec37d2ff965ab337c53d0c58a
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.1-py3-none-any.whl

Download URL sapienta-0.1.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29f54e8bd5fb16a92ddab8d783ac652a83b0b90eba12348675431ce26094a7c5
BLAKE2b-256 checksum
How to use checksums
724809e0f57ec84dcd521af98008389067f5385e4219b3d18a1458ea69d38b93
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

0.1.2

2 release files

This release

0.1.1 This release

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