Official Python SDK for Arch Tools — 58 AI agent API tools with x402 payments
Project description
Arch Tools Python SDK
Official Python client for Arch Tools — 58 production API tools for AI agents with x402 USDC payments.
Install
pip install arch-tools
Quick Start
from arch_tools import ArchTools
client = ArchTools(api_key="arch_your_key_here")
# AI generation
result = client.ai_generate(prompt="Write a haiku about x402 payments")
print(result["text"])
# Web scraping
page = client.web_scrape(url="https://example.com")
print(page["text"])
# Crypto price
price = client.crypto_price(symbol="bitcoin")
print(price["usd"])
# Any tool
result = client.call("ocr-extract", image_url="https://example.com/image.png")
All 58 Tools
Use client.call("tool-name", **params) for any tool. See archtools.dev/docs for the full list.
x402 Payments
Agents without an API key can pay per-call with USDC. See the BYOK guide.
Error Handling
from arch_tools import ArchTools, PaymentRequiredError, RateLimitError
client = ArchTools(api_key="arch_...")
try:
result = client.web_scrape(url="https://example.com")
except RateLimitError as e:
print(f"Rate limited. Retry after: {e.retry_after}s")
except PaymentRequiredError:
print("No credits. Top up at archtools.dev or pay with USDC via x402.")
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 Distributions
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 arch_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: arch_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a663271e4fd4252d1018a70c5715af3fe627400992bccf98ad6989e5be3270
|
|
| MD5 |
8cc4b8a6900e734309434664f09835f8
|
|
| BLAKE2b-256 |
b42e4c2197f33af6b75cdcd0c0be61e240aafcb2aa03ddae6962ffdae07cbb9f
|