style(rmi-backend): complete lint cleanup — 1175→0 ruff errors

- Fix 71 invalid-syntax files (class-body newline-broken assignments)
- Add from/None chain to 307 B904 raise-without-from sites
- Add B008 ignore to ruff.toml (already in pyproject.toml)
- Noqa F401 on __init__.py re-exports (137 sites)
- Noqa E402 on deferred imports (63 sites)
- Bulk-add stdlib/FastAPI/project imports for F821 (127 sites)
- Replace ×→x, –→-, …→... in docstrings (4093 chars)
- Manual refactor of 5 SIM103/SIM116 patterns

Tests: 791 passed (66 deselected due to pre-existing Redis issues in test_rag.py)
Co-authored-by: opencode <opencode@rugmunch.io>
This commit is contained in:
opencode 2026-07-06 15:43:20 +02:00
parent ca9bdce365
commit c762564d40
688 changed files with 5165 additions and 5142 deletions

View file

@ -1,4 +1,4 @@
"""rugmunch_sdk friendly Python wrapper around the RMI API.
"""rugmunch_sdk - friendly Python wrapper around the RMI API.
v4.0 Sovereign-first. Auto-generated from /openapi.json then wrapped
with a friendly ergonomic interface.

View file

@ -1,4 +1,4 @@
"""RMI SDK Python client for Rug Munch Intelligence.
"""RMI SDK - Python client for Rug Munch Intelligence.
v4.0 Sovereign-first. Friendly wrapper around the auto-generated
OpenAPI client. See rugmunch/ for the full generated SDK.

View file

@ -1,4 +1,4 @@
"""RMI SDK Response models (ergonomic, not raw API shapes)."""
"""RMI SDK - Response models (ergonomic, not raw API shapes)."""
from __future__ import annotations
from typing import Any

View file

@ -1,7 +1,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)
@ -41,7 +41,7 @@ setup(
include_package_data=True,
long_description_content_type='text/markdown',
long_description="""\
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
""",
package_data={"rugmunch": ["py.typed"]},
)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -2,7 +2,7 @@
"""
RMI Backend
Rug Munch Intelligence institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
Rug Munch Intelligence - institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
The version of the OpenAPI document: 2026.06.21
Generated by OpenAPI Generator (https://openapi-generator.tech)

View file

@ -1,4 +1,4 @@
"""x402 AI Framework Integrations pay-per-call for any agent framework.
"""x402 AI Framework Integrations - pay-per-call for any agent framework.
LangChain, CrewAI, AutoGen, and any Python framework that calls tools.
One pattern: wrap a tool call deduct credits execute return.
@ -6,6 +6,6 @@ One pattern: wrap a tool call → deduct credits → execute → return.
pip install x402-frameworks
"""
from .langchain_adapter import x402LangChain
from .crewai_adapter import x402CrewAI
from .autogen_adapter import x402AutoGen
from .autogen_adapter import x402AutoGen # noqa: F401
from .crewai_adapter import x402CrewAI # noqa: F401
from .langchain_adapter import x402LangChain # noqa: F401

View file

@ -1,7 +1,7 @@
"""x402 AutoGen adapter agentic payment flows for multi-agent conversations.
"""x402 AutoGen adapter - agentic payment flows for multi-agent conversations.
AutoGen agents negotiate who pays for tool calls. x402 handles the
payment transparently agents request, verify, and deduct.
payment transparently - agents request, verify, and deduct.
Usage:
from x402_frameworks import x402AutoGen
@ -20,9 +20,8 @@ Usage:
from __future__ import annotations
import functools
import json
import logging
from typing import Any, Callable, Optional
from collections.abc import Callable
from .base import x402Adapter
@ -30,7 +29,7 @@ logger = logging.getLogger("x402.autogen")
class x402AutoGen(x402Adapter):
"""AutoGen adapter handles payment for tool calls in multi-agent convos.
"""AutoGen adapter - handles payment for tool calls in multi-agent convos.
Features:
- AutoGen function format: `as_function()` returns AutoGen-compatible spec
@ -59,7 +58,7 @@ class x402AutoGen(x402Adapter):
},
}
def wrap_tool(self, tool_name: str, tool_func: Optional[Callable] = None) -> Callable:
def wrap_tool(self, tool_name: str, tool_func: Callable | None = None) -> Callable:
def decorator(func: Callable) -> Callable:
@functools.wraps(func)
def wrapper(*args, **kwargs):

View file

@ -1,4 +1,4 @@
"""x402 Framework Adapter base class for all AI framework integrations.
"""x402 Framework Adapter - base class for all AI framework integrations.
Same pattern for every framework:
1. Wrap a tool call
@ -16,7 +16,8 @@ import json
import logging
import os
from abc import ABC, abstractmethod
from typing import Any, Callable, Optional
from collections.abc import Callable
from typing import Any
import httpx
@ -67,7 +68,7 @@ class x402Adapter(ABC):
return json.loads(text) if isinstance(text, str) else text
def check_available(self, tool: str) -> tuple[bool, float, str]:
"""Check if a tool can be called returns (available, price_usd, message).
"""Check if a tool can be called - returns (available, price_usd, message).
First checks trials, then checks prepaid credits/budget.
"""
@ -98,7 +99,7 @@ class x402Adapter(ABC):
def record_usage(self, tool: str, cost_usd: float):
"""Record tool usage for budget tracking."""
self._spent_this_month += cost_usd
logger.info(f"x402: called {tool} ${cost_usd:.4f} (monthly: ${self._spent_this_month:.2f})")
logger.info(f"x402: called {tool} - ${cost_usd:.4f} (monthly: ${self._spent_this_month:.2f})")
def list_tools(self, category: str = "") -> list[dict]:
"""List available tools with prices."""

View file

@ -1,4 +1,4 @@
"""x402 CrewAI adapter multi-agent payment management.
"""x402 CrewAI adapter - multi-agent payment management.
CrewAI runs multiple agents that call tools in parallel. x402 manages
a shared credit pool across all agents in a crew.
@ -21,7 +21,7 @@ from __future__ import annotations
import functools
import logging
from typing import Any, Callable, Optional
from collections.abc import Callable
from .base import x402Adapter
@ -29,7 +29,7 @@ logger = logging.getLogger("x402.crewai")
class x402CrewAI(x402Adapter):
"""CrewAI adapter shared payment pool across all agents in a crew.
"""CrewAI adapter - shared payment pool across all agents in a crew.
Features:
- Shared credit pool (all agents in a crew share a budget)
@ -54,7 +54,7 @@ class x402CrewAI(x402Adapter):
"""
return self.wrap_tool(tool_name)(tool_func)
def wrap_tool(self, tool_name: str, tool_func: Optional[Callable] = None) -> Callable:
def wrap_tool(self, tool_name: str, tool_func: Callable | None = None) -> Callable:
def decorator(func: Callable) -> Callable:
@functools.wraps(func)
def wrapper(*args, **kwargs):

View file

@ -1,4 +1,4 @@
"""x402 LangChain adapter transparent payment for LangChain tools.
"""x402 LangChain adapter - transparent payment for LangChain tools.
Usage:
from x402_frameworks import x402LangChain
@ -7,7 +7,7 @@ Usage:
# Initialize x402
x402 = x402LangChain(api_key="your-key", auto_pay=True)
# Wrap any tool payment is handled automatically
# Wrap any tool - payment is handled automatically
@x402.wrap_tool("token_scan")
@tool
def scan_token(address: str) -> dict:
@ -24,7 +24,7 @@ from __future__ import annotations
import functools
import logging
from typing import Any, Callable, Optional
from collections.abc import Callable
from .base import x402Adapter
@ -32,7 +32,7 @@ logger = logging.getLogger("x402.langchain")
class x402LangChain(x402Adapter):
"""LangChain adapter wraps tools with automatic x402 payment.
"""LangChain adapter - wraps tools with automatic x402 payment.
Every tool call checks:
1. Free trial available? use it
@ -41,7 +41,7 @@ class x402LangChain(x402Adapter):
4. None? raise PaymentRequired error
"""
def wrap_tool(self, tool_name: str, tool_func: Optional[Callable] = None) -> Callable:
def wrap_tool(self, tool_name: str, tool_func: Callable | None = None) -> Callable:
"""Decorator: wrap a LangChain tool function with x402 payment.
Usage as decorator:

View file

@ -1,4 +1,4 @@
"""x402 Python SDK pay-per-call AI tool access.
"""x402 Python SDK - pay-per-call AI tool access.
Usage:
pip install x402-sdk
@ -34,8 +34,7 @@ Usage:
from __future__ import annotations
import json
from dataclasses import dataclass, field
from typing import Any, Optional
from dataclasses import dataclass
import httpx
@ -73,7 +72,7 @@ class ToolInfo:
class x402:
"""x402 client pay-per-call AI tool access.
"""x402 client - pay-per-call AI tool access.
Args:
api_key: Optional API key for authenticated access.