Skip to main content

Official Python SDK for rAizon_detra x402 AI APIs (EVM + Solana)

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


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.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raizon_detra-1.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file raizon_detra-1.1.0.tar.gz.

File metadata

  • Download URL: raizon_detra-1.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for raizon_detra-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6866675bad91209d326424f31bdd4564814eb2a3439a41f4183db22f3467fcb7
MD5 e02e69a272813b31250a7a969e0490f0
BLAKE2b-256 3af510f02d2b2f4334779aa816ca7a778b2e89c0b587de7daf30244ba845f699

See more details on using hashes here.

File details

Details for the file raizon_detra-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: raizon_detra-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for raizon_detra-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c815e48325b307974c7b22d74720f9159ef2391f1ed2c8f0cac50f3440172db
MD5 fdba81e6f5d0ff9b5c5f9e57fb5c298d
BLAKE2b-256 238dc83deab95106039ee9ffe3480ee6a4ae23fa277fb90406cf8c5ded019d13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page