Skip to main content

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

Metadata

Release files for pydantic-ai-nory 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydantic-ai-nory 0.1.0
File Size Uploaded
pydantic_ai_nory-0.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-ai-nory 0.1.0
File Interpreter ABI Platform
pydantic_ai_nory-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / pydantic_ai_nory-0.1.0.tar.gz

Download URL pydantic_ai_nory-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b561e88a4758d115ba77bb14bc41ea86ea36d3635663912a397cd592274ac909
BLAKE2b-256 checksum
How to use checksums
6df1c9430c643ce25c16fcac64f5f605c24b3f421489936f0942520cf3e59829
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.3

Release files / pydantic_ai_nory-0.1.0-py3-none-any.whl

Download URL pydantic_ai_nory-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28ad43ae7f2ffc8d3c31f20f39030c5e40a70748a2c436caac3dc434050b5383
BLAKE2b-256 checksum
How to use checksums
479dfd2a017d7c3b6d8841056ea2a3a42baa8ca6f7672f82bb062d06a4e3acee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page