Skip to main content

enclave42

Python client for Enclave42, including the public Confidential inference facade.

pip install enclave42
from enclave42 import Enclave42

client = Enclave42(api_key="...")
result = client.confidential.chat(
    model="glm-5-1-tee",
    prompt="Explain this in one sentence.",
)
print(result.text)
print(result.receipt_id)

See examples/confidential_demo.py in the source repository for a complete example.

client.confidential.chat(...) performs exactly one underlying dispatch per call: it creates a Confidential session, retrieves and locally verifies attestation evidence, encrypts the request locally, sends it, decrypts the response locally, and returns a ConfidentialResult with a real Security Receipt correlation. It never falls back to an unencrypted request.

Install enclave42[verification] to additionally install the dependencies used for stronger, real TDX/GPU attestation verification. Without them, the corresponding verification dimension(s) degrade honestly to unsupported/unverified rather than ever being reported as verified.

Metadata

Release files for enclave42 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for enclave42 0.1.2
File Interpreter ABI Platform
enclave42-0.1.2-py3-none-manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.39+ x86-64 Details

Release files / enclave42-0.1.2-py3-none-manylinux_2_39_x86_64.whl

Download URL enclave42-0.1.2-py3-none-manylinux_2_39_x86_64.whl
Size 36.9 MB
Tags Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d7fb0e7cb7aa607f7a634d6c0824616f1953447161a49bad158c474153833555
BLAKE2b-256 checksum
How to use checksums
c69651dec460cc250f6a4b9a25c03e53ad828683381a7f1d151d2c8ca7160fbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

4 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