Python SDK
Package: truss-sdk
License: MIT
Requires: Python 3.9+
Installation
pip install truss-sdk
Overview
The Python SDK provides a full Truss API client, Ed25519 key pair generation, mandate signing, and evidence verification using PyNaCl for cryptographic operations. It is designed for agent runtimes built with LangGraph, AutoGen, CrewAI, and other Python-based frameworks.
Basic Usage
from truss_sdk import TrussClient, generate_key_pair
client = TrussClient(api_url="...", api_key="...")
keys = generate_key_pair()
# Sign mandates, record actions, and verify evidence
API Reference
See the GitHub repository for the full API reference, client configuration options, and middleware integration guides.