Pydantic AI tools for x402 payments - let agents pay for APIs autonomously
Project description
pydantic-ai-nory
Pydantic AI tools for x402 payments - Let your agents pay for APIs autonomously.
Installation
pip install pydantic-ai-nory
Quick Start
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
export NORY_WALLET_KEY="your-solana-private-key"
Links
- Website | Docs | x402 Protocol
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic_ai_nory-0.1.0.tar.gz.
File metadata
- Download URL: pydantic_ai_nory-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b561e88a4758d115ba77bb14bc41ea86ea36d3635663912a397cd592274ac909
|
|
| MD5 |
15aa357fd10776d8144d2916ac9e973f
|
|
| BLAKE2b-256 |
6df1c9430c643ce25c16fcac64f5f605c24b3f421489936f0942520cf3e59829
|
File details
Details for the file pydantic_ai_nory-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydantic_ai_nory-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28ad43ae7f2ffc8d3c31f20f39030c5e40a70748a2c436caac3dc434050b5383
|
|
| MD5 |
bed63c3a39ed7e1080930b5255bcfd6a
|
|
| BLAKE2b-256 |
479dfd2a017d7c3b6d8841056ea2a3a42baa8ca6f7672f82bb062d06a4e3acee
|