Official Python SDK for the Rencom API - unified search for x402 resources and UCP merchants
Project description
Rencom Python SDK
Official Python SDK for the Rencom API.
Installation
pip install rencom
For x402 payment support:
pip install rencom[x402]
Quick Start
import asyncio
from rencom import AsyncRencomClient
async def main():
async with AsyncRencomClient(api_key="rn_...") as client:
# Search x402 resources
results = await client.x402.search("trading api")
for result in results.results:
print(f"{result.resource}: {result.description}")
# Search UCP merchants
merchants = await client.ucp.merchants.search(industry="retail")
for merchant in merchants.results:
print(f"{merchant.name}: {merchant.domain}")
asyncio.run(main())
Authentication
The SDK supports multiple authentication methods:
API Key (recommended):
client = AsyncRencomClient(api_key="rn_...")
Environment Variable:
export RENCOM_API_KEY="rn_..."
client = AsyncRencomClient() # Auto-loads from environment
JWT Token:
client = AsyncRencomClient(jwt_token="eyJ...")
Features
- x402 resource search - discover APIs that accept blockchain payments
- UCP merchant discovery - find merchants and products on the Universal Commerce Protocol
- Fully typed with Pydantic models
- Built-in pagination support
- Async/await support via httpx
- Session tracking and analytics
Documentation
Full documentation is available at https://rencom-sdk-python.readthedocs.io
See the examples/ directory for more usage examples.
Development
git clone https://github.com/rencom-ai/rencom-sdk-python.git
cd rencom-sdk-python
pip install -e ".[dev]"
Run tests:
pytest
The SDK auto-generates models from the OpenAPI specification:
python scripts/generate.py
Note: Files in rencom/_generated/ are auto-generated and should not be edited manually.
License
MIT License - see LICENSE for details.
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
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 rencom-0.1.2.tar.gz.
File metadata
- Download URL: rencom-0.1.2.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71424c2154060ac88a20695da4f93ec169805a4d463ee0bdf4b5fe95e903e5c4
|
|
| MD5 |
628a9a8000d133f5316e527a321d7e61
|
|
| BLAKE2b-256 |
f7e4443d782f5872d85eff71bfaa64d410ab9c4b45a1379eaffcf2ca35484f8a
|
File details
Details for the file rencom-0.1.2-py3-none-any.whl.
File metadata
- Download URL: rencom-0.1.2-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d07b75e6a06b31f2dec4fb91d7e2ff73e79dd45a225adcc573dcefec1c2425a
|
|
| MD5 |
ca0bc49b3dd085ebec7567f9972d6a2b
|
|
| BLAKE2b-256 |
44c154d3f2b13d3a4ee7df2b0112785e125717c140929d78bfa7651f87030f89
|