Official Python SDK for rAizon_detra x402 AI APIs
Project description
raizon-detra
Official Python SDK for rAizon_detra — x402 AI APIs for agents.
Install
pip install raizon-detra
Quick Start
from raizon_detra import RaizonClient
client = RaizonClient()
# Free endpoints
prices = client.get_prices()
health = client.health()
# AI endpoints (async — auto-polls)
result = client.research(query="AI agent trends 2026")
print(result)
# Intelligence endpoints
intel = client.market_intelligence(window="24h")
print(intel)
With Wallet (auto-payment)
from raizon_detra import RaizonClient
client = RaizonClient(wallet_private_key="0x...")
# Automatically handles 402 → sign payment → retry → poll
result = client.research(query="AI agent trends 2026")
print(result)
API
AI Endpoints (async — auto-polls)
| Method | Description |
|---|---|
client.research(query, depth) |
AI research & analysis |
client.content(prompt, type, tone) |
AI content generation |
client.code_review(code, language) |
AI code review |
client.scrape(url, format) |
Web scraping |
client.signals(topic, sources, timeframe) |
Real-time signals |
client.signals_enhanced(topic, sources, timeframe) |
Enhanced signals |
client.enrich(data, fields) |
Data enrichment |
client.verify(claim, context) |
Compliance verification |
client.inference(prompt, model, max_tokens) |
LLM inference |
client.wiki(**kwargs) |
Wiki generation |
client.enrich_x(**kwargs) |
X/Twitter profile enrichment |
Intelligence Endpoints (sync)
| Method | Description |
|---|---|
client.market_intelligence(**kwargs) |
Market trend intelligence |
client.pricing_intelligence(category) |
Pricing intelligence |
client.agent_intelligence() |
Agent behavior analytics |
client.raw_trends(window) |
Raw trend data |
client.wallet_intelligence(limit) |
Wallet profiles + RFM scoring |
client.endpoint_intelligence() |
Endpoint popularity index |
client.demand_forecast() |
Demand forecasting |
client.security_intelligence() |
Wash detection |
client.competitive_intelligence() |
Competitive intelligence |
client.full_intelligence() |
Full intelligence report |
Free Endpoints
| Method | Description |
|---|---|
client.get_prices() |
Live service prices |
client.get_services() |
Service catalog |
client.health() |
Health check |
client.stats() |
Server stats |
client.agent_summary() |
Free agent summary |
client.endpoint_summary() |
Free endpoint summary |
client.market_summary() |
Free market summary |
client.forecast_summary() |
Free forecast summary |
client.security_summary() |
Free security summary |
client.transactions(limit) |
Recent transactions |
client.feed(limit) |
Live transaction ticker |
client.volume(window) |
Volume data |
client.volume_by_niche(niche, window) |
Volume by niche |
client.all_volumes(window) |
All niche volumes |
Error Handling
from raizon_detra import RaizonClient, PaymentRequiredError, PollingTimeoutError
try:
result = client.research(query="test")
except PaymentRequiredError as e:
print(f"Payment required: {e.payment.amount} {e.payment.currency}")
except PollingTimeoutError as e:
print(f"Still processing, check back later: {e.request_id}")
except Exception as e:
print(f"Error: {e}")
Configuration
client = RaizonClient(
base_url="https://api.rzndtra.com", # default
wallet_private_key="0x...", # for auto-payment
max_polls=30, # default: 30
poll_interval=2.0, # seconds, default: 2
timeout=30.0, # seconds, default: 30
)
License
MIT
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
raizon_detra-1.0.1.tar.gz
(7.0 kB
view details)
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 raizon_detra-1.0.1.tar.gz.
File metadata
- Download URL: raizon_detra-1.0.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf1f825fee42a5d0d6c1b50c4d1d1f4f720e4805dc98211b45f7bebd550d18cc
|
|
| MD5 |
5fab0ab6389a0db7798ba1b1a4daa750
|
|
| BLAKE2b-256 |
324e731512038dbbbf05cbeb605df4cb1b1aad81dfb0f591a8edd352acd1e069
|
File details
Details for the file raizon_detra-1.0.1-py3-none-any.whl.
File metadata
- Download URL: raizon_detra-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd80540d881d844ad42570c95cedbda8957fbd351eeb77b4c8142ad7b7245fb
|
|
| MD5 |
310c4768058815388438b498c66d050c
|
|
| BLAKE2b-256 |
afc5e0b3a6890b6dfced1aac85599536becc52868426c71a15cf57cc04f798c6
|