Skip to main content

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

Metadata

Release files for raizon-detra 1.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 raizon-detra 1.1.0
File Size Uploaded Provenance Actions
raizon_detra-1.1.0.tar.gz 8.8 kB Without provenance Details for raizon_detra-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raizon-detra 1.1.0
File Interpreter ABI Platform Actions
raizon_detra-1.1.0-py3-none-any.whl Python 3 none any Details for raizon_detra-1.1.0-py3-none-any.whl

Total release size: 17.2 kB

Release files / raizon_detra-1.1.0.tar.gz

Download URL raizon_detra-1.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6866675bad91209d326424f31bdd4564814eb2a3439a41f4183db22f3467fcb7
BLAKE2b-256 checksum
How to use checksums
3af510f02d2b2f4334779aa816ca7a778b2e89c0b587de7daf30244ba845f699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / raizon_detra-1.1.0-py3-none-any.whl

Download URL raizon_detra-1.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c815e48325b307974c7b22d74720f9159ef2391f1ed2c8f0cac50f3440172db
BLAKE2b-256 checksum
How to use checksums
238dc83deab95106039ee9ffe3480ee6a4ae23fa277fb90406cf8c5ded019d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for raizon-detra 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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