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

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

Built distributions (wheels)

Table of built distributions (wheels) for enclave42 0.1.0
File
enclave42-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
enclave42-0.1.0-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details
enclave42-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
enclave42-0.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 7.9 MB

Release files / enclave42-0.1.0-py3-none-win_amd64.whl

Download URL enclave42-0.1.0-py3-none-win_amd64.whl
Size 1.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f0a49caa66d988764a8e443b62e73313e4487f7705916b7ba148e4305dfaf3cf
BLAKE2b-256 checksum
How to use checksums
5a4bd6e5178c909e197b283ed5fd92a91c9ff5717b8da2c785b0c0ebc1011f9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / enclave42-0.1.0-py3-none-manylinux_2_34_x86_64.whl

Download URL enclave42-0.1.0-py3-none-manylinux_2_34_x86_64.whl
Size 1.9 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
df0de80946230797901bb57ae3f432f84e3e938ab67f4d50d16b2a938ec2d77c
BLAKE2b-256 checksum
How to use checksums
a43efb9d625bcf24f07f76617323bfd489a039a1ead9ae747ddd6f0f5501f936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / enclave42-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL enclave42-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 2.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fba439bebe12b746f6089549148cad7d0b20ee19fc6449735228ecd603b1501c
BLAKE2b-256 checksum
How to use checksums
06f73d562ef1337ac9646040cccca38f5e2094805572059d5849e6a08d8dc164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / enclave42-0.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL enclave42-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 2.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6ce965321a0300e3324b8b8cc154a4f5838cb2b4e181d3bd9d4a9581fafa9097
BLAKE2b-256 checksum
How to use checksums
4bdeb966f61b31d2cec5e362d2e90f2e81d9ec28b1693672b71d3a29b7a26387
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

0.1.2

1 release file

0.1.1

1 release file

This release

0.1.0 This release

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