Metadata-Version: 2.4
Name: ethersflow
Version: 0.5.0
Summary: Python SDK and LangChain tool wrapper for the hosted EthersFlow adversarial AI review and runtime agent action verification platform.
Author-email: "EthersFlow Inc." <dev@ethersflow.com>
License: MIT
Project-URL: Homepage, https://www.ethersflow.com
Project-URL: Repository, https://github.com/Ethersflow/EthersFlow
Project-URL: Issues, https://github.com/Ethersflow/EthersFlow/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.0

# EthersFlow Python SDK

Official Python client and LangChain integration wrapper for the hosted **EthersFlow** adversarial AI review and runtime agent action verification platform.

## Installation

```bash
pip install ethersflow
```

Or install directly from git:
```bash
pip install git+https://github.com/Ethersflow/EthersFlow.git#subdirectory=sdk/python
```

## Quick Start

```python
import os
from ethersflow import EthersFlowClient

# Get a free sandbox or live key at https://www.ethersflow.com/api-keys.html
client = EthersFlowClient(api_key=os.getenv("ETHERSFLOW_API_KEY", "get_key_at_ethersflow.com/api-keys.html"))

result = client.verify_agent_action(
    agent_action="Transfer 5000 USDC to 0x71C... for auditing services",
    persona_preset="financial_compliance",
    agent_count=2
)

print(f"Verified: {result['verified']}")
print(f"Verdict: {result['verdict_summary']}")
```

## LangChain Integration

```python
from ethersflow import EthersFlowLangChainTool

verifier_tool = EthersFlowLangChainTool(api_key=os.getenv("ETHERSFLOW_API_KEY", "get_key_at_ethersflow.com/api-keys.html"))
tools = [verifier_tool]
```
