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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enclave42-0.1.1-py3-none-manylinux_2_39_x86_64.whl | Python 3 | none | Linux glibc 2.39+ x86-64 | Details |
Release files / enclave42-0.1.1-py3-none-manylinux_2_39_x86_64.whl
| Download URL | enclave42-0.1.1-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 |
e56c37be46d059ef467f70b11ab453e4a81991660a6461979fe94eb416d025df
|
|
BLAKE2b-256 checksum How to use checksums |
1049f8676aa9fc3db2264cb84618e3dd21f9901e3c4e91574a1cf74524736c78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|