Metadata-Version: 2.4
Name: pangea-anthropic
Version: 0.2.0
Summary: A wrapper around the Anthropic Python library
Author: Pangea
Author-email: Pangea <support@pangea.cloud>
License-Expression: MIT
Requires-Dist: anthropic>=0.71.0
Requires-Dist: anyio>=4.11.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: pangea-sdk>=6.9.0
Requires-Dist: typing-extensions>=4.15.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Pangea + Anthropic Python API library

A wrapper around the Anthropic Python library that wraps the Messages API with
Pangea AI Guard. Supports Python v3.10 and greater.

## Installation

```bash
pip install -U pangea-anthropic
```

## Usage

```python
import os
from pangea_anthropic import PangeaAnthropic

client = PangeaAnthropic(
    pangea_api_key=os.environ.get("PANGEA_API_KEY"),
    pangea_input_recipe="pangea_prompt_guard",
    pangea_output_recipe="pangea_llm_response_guard",
    api_key=os.environ.get("ANTHROPIC_API_KEY"),
)

message = client.messages.create(
    max_tokens=1024,
    messages=[
        {
            "role": "user",
            "content": "Hello, Claude",
        }
    ],
    model="claude-sonnet-4-20250514",
)
print(message.content)
```
