Metadata-Version: 2.4
Name: pydantic-ai-nory
Version: 0.1.0
Summary: Pydantic AI tools for x402 payments - let agents pay for APIs autonomously
Author-email: Nory <hello@noryx402.com>
License: MIT
Project-URL: Homepage, https://noryx402.com
Project-URL: Repository, https://github.com/TheMemeBanker/pydantic-ai-nory
Keywords: pydantic-ai,pydantic,ai-agents,payments,x402,solana,usdc
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: pydantic-ai>=0.0.10
Requires-Dist: requests>=2.28.0

# pydantic-ai-nory

**Pydantic AI tools for x402 payments** - Let your agents pay for APIs autonomously.

## Installation

```bash
pip install pydantic-ai-nory
```

## Quick Start

```python
from pydantic_ai import Agent
from pydantic_ai_nory import NoryTools

nory = NoryTools()

agent = Agent(
    'openai:gpt-4',
    tools=[nory.fetch, nory.crypto_prices, nory.weather, nory.translate]
)

result = agent.run_sync("What's the current price of Bitcoin?")
print(result.data)
```

## Available Tools

| Tool | Description | Cost |
|------|-------------|------|
| `nory.fetch` | Fetch any URL with auto x402 payment | Varies |
| `nory.crypto_prices` | Real-time crypto prices | $0.001 |
| `nory.weather` | Weather + 7-day forecast | $0.002 |
| `nory.translate` | Translate 20+ languages | $0.005 |
| `nory.qrcode` | Generate QR codes | $0.001 |
| `nory.web_summary` | Extract webpage content | $0.01 |

## Environment

```bash
export NORY_WALLET_KEY="your-solana-private-key"
```

## Links

- [Website](https://noryx402.com) | [Docs](https://noryx402.com/docs) | [x402 Protocol](https://github.com/coinbase/x402)
