Metadata-Version: 2.4
Name: iris-security-anthropic
Version: 0.1.0
Summary: IRIS governance for Anthropic Claude — Cedar policy on every API call
Author-email: IRIS Platform <sdk@iris.ai>
License: Apache-2.0
Project-URL: Homepage, https://github.com/gimartinb/iris-sdk
Project-URL: Repository, https://github.com/gimartinb/iris-sdk
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: iris-security-core>=0.1.0
Requires-Dist: iris-security-sdk>=0.1.0
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.25; extra == "anthropic"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"

# iris-anthropic

Drop-in IRIS governance for the [Anthropic Python SDK](https://github.com/anthropics/anthropic-sdk-python).

Replace one line:

```python
# client = anthropic.Anthropic()
client = IrisAnthropic(passport=passport)
```

Every `client.messages.create()` and `client.messages.stream()` call is evaluated against Cedar policy, recorded in the Evidence Vault, and enforced per `IRIS_ENV` (warn in dev, block in production).

## Install

```bash
pip install iris-anthropic
```

## Quickstart

See [examples/governed_claude.py](examples/governed_claude.py).

## Environment

| `IRIS_ENV`   | Behavior                                      |
|-------------|-----------------------------------------------|
| `dev`       | Fail open — warnings to stderr, never block   |
| `production`| Fail closed — `IrisViolationError` on deny    |

Defaults to `dev` when unset.
