Skip to main content

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


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.0.tar.gz (7.5 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.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raizon_detra-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 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.0.0.tar.gz
Algorithm Hash digest
SHA256 2a120a6a5af42a16279446da00308936a0280e79f6403680dbc1c1f8d8439b3c
MD5 15b6998b75ca9dd1195692414c9c8f3c
BLAKE2b-256 ec78daee499e158ffe13d2c24e7b880096404c18ca71cf60e48865ab26296a67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: raizon_detra-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4942e9b1389dfa9eac0bbe63c075024c6452a60a9fadd6352583172cdb4aa002
MD5 348200805336e3647383a06431792a6e
BLAKE2b-256 cda48c2d1e73c9d58681ff7c8af4b106d3916765534ef5d85a9472e1b0a5cee9

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