Skip to main content

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.

PyPI Python Versions License

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

rencom-0.1.2.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rencom-0.1.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

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

Hashes for rencom-0.1.2.tar.gz
Algorithm Hash digest
SHA256 71424c2154060ac88a20695da4f93ec169805a4d463ee0bdf4b5fe95e903e5c4
MD5 628a9a8000d133f5316e527a321d7e61
BLAKE2b-256 f7e4443d782f5872d85eff71bfaa64d410ab9c4b45a1379eaffcf2ca35484f8a

See more details on using hashes here.

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

Hashes for rencom-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d07b75e6a06b31f2dec4fb91d7e2ff73e79dd45a225adcc573dcefec1c2425a
MD5 ca0bc49b3dd085ebec7567f9972d6a2b
BLAKE2b-256 44c154d3f2b13d3a4ee7df2b0112785e125717c140929d78bfa7651f87030f89

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