Metadata-Version: 2.4
Name: ethersflow
Version: 0.2.0
Summary: EthersFlow Python SDK — lightweight client + LangChain tool wrapper for Multi-Model Adversarial Consensus
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 **EthersFlow** — the multi-model trust layer that verifies AI outputs and agent action directives through adversarial consensus before execution.

## 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
from ethersflow import EthersFlowClient

client = EthersFlowClient(api_key=os.getenv("ETHERSFLOW_API_KEY", "your_api_key"))

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

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", "your_api_key"))
tools = [verifier_tool]
```
