Skip to content

Python SDK

The TapPass Python SDK provides a typed client for governed AI agent interactions.

Terminal window
pip install tappass
from tappass import Agent
agent = Agent("http://localhost:9620", "tp_...")
response = agent.chat("Analyze Q3 revenue trends")
print(response.content) # "Revenue grew 12%..."
print(response.pipeline.classification) # "INTERNAL"
PageDescription
AgentAgent class: chat, stream, govern tools, sandbox
Governance FlagsControl agent behavior with flags
StreamingSync and async streaming
Tool GovernanceWrap tools for audited execution
SandboxKernel-level isolation and trust tiers
Admin ClientTapPass admin class: pipelines, agents, audit
Response TypesChatResponse, Usage, PipelineResult, etc.
Error HandlingPolicyBlockError and retry behavior
FrameworksOpenAI, LangChain, CrewAI, Anthropic integrations

Apache 2.0: free to use, modify, and distribute.