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.merchants:
            print(f"{merchant.name}: {merchant.domain}")

asyncio.run(main())

Authentication

Getting an API Key

  1. Visit https://api.rencom.ai/login
  2. Sign in with your email, Github or Google
  3. Generate an API key from your dashboard

Using Your API Key

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 coming soon.

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.4.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.4-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rencom-0.1.4.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rencom-0.1.4.tar.gz
Algorithm Hash digest
SHA256 eb61c929c507182e26b13a9c1c2335832d8246a1023ab57bcc4bffcc0509058d
MD5 6d6186da111215c91cd828ee90ed037f
BLAKE2b-256 073aa2c2eb51f15bac832b75a849d4518da1094a75154f74709eb0697b7389b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for rencom-0.1.4.tar.gz:

Publisher: publish.yml on rencom-ai/rencom-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: rencom-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rencom-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 256acfae603fee7ef4bfa7d3a06b0fc9aaacf39bbe3596569a53f484378e845a
MD5 6d5d427ec29910e021dcfe58ed0218b8
BLAKE2b-256 0b298b596683fb51260510e07314286277b3ff4e495a9d6306b0ccd4ff2a72a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for rencom-0.1.4-py3-none-any.whl:

Publisher: publish.yml on rencom-ai/rencom-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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