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.1.tar.gz (25.5 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.1-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file rencom-0.1.1.tar.gz.

File metadata

  • Download URL: rencom-0.1.1.tar.gz
  • Upload date:
  • Size: 25.5 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.1.tar.gz
Algorithm Hash digest
SHA256 0a4322814050954d426aa9c5eebc28e38b1ecd78e88b109da1692f814cb438cc
MD5 ebcf44b5bdf48ed6d00455cb1b5ee55d
BLAKE2b-256 6484f7670cf0df07071b2df71b425b61274bb6d6b81d8bb025f3a57b4f5b39a9

See more details on using hashes here.

File details

Details for the file rencom-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rencom-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b19aa35e6a1e7f1486d6fd968a4b1db74ac5b816487105e3ae9743b6a335311
MD5 b37ee53611fcb0eeee22e4033bd8e8ee
BLAKE2b-256 64125aee191294d219b78a0c5c100fe51951e957d7c30e1d87b11af0c4d27b50

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