# Python (/docs/python)



`tawaguard-sdk` is the official Python client for Tawa Guard — sync
(`TawaGuard`) and async (`AsyncTawaGuard`) clients, plus OpenAI Agents SDK
guardrails.

<ComponentVersion component="sdk-py" />

```python
from tawaguard import TawaGuard

client = TawaGuard("YOUR_API_KEY")
result = client.analyze(user_input)

if result.action != "allow":
    ...  # don't forward this prompt to your model
```

<Cards>
  <Card title="Quickstart" href="/docs/python/getting-started/quickstart" description="Scan your first prompt in a couple of minutes." />

  <Card title="Guides" href="/docs/python/guides" description="Authentication, identifiers, policy rules, and error handling." />

  <Card title="Integrations" href="/docs/python/integrations" description="OpenAI Agents SDK guardrails, including tool calls and tool results." />

  <Card title="Cookbook" href="/docs/python/cookbook" description="Complete recipes for RAG, agents, and FastAPI." />

  <Card title="SDK Reference" href="/docs/python/sdk" description="Every scan method and client option, fully typed." />
</Cards>
