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 products
        products = await client.ucp.products.search("laptop case")
        for product in products.products:
            print(f"{product.title} - ${product.price.amount / 100:.2f}")

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.5.tar.gz (25.7 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.5-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rencom-0.1.5.tar.gz
  • Upload date:
  • Size: 25.7 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.5.tar.gz
Algorithm Hash digest
SHA256 6400b6ab9c470ae61be8d77488b0c71f5fad2ac914ceb66bd11fe9f50eca30c0
MD5 716e7553d9cb8f192b81404f7cbbcd3d
BLAKE2b-256 48c8da0aa42f80c2069d88a2d2288cf12d27632175c3b84ce0ce94bac9b3d3a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rencom-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: rencom-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3d2ce64e66a32dcf1d47c200a0f7720ea488865ad357e1d463dbc0e87ce794
MD5 a29072855f02a6796221ecd3a6ccbec2
BLAKE2b-256 cb42ec18fc7ff81dbeda8899a1f542a71ad392f2ab72aa52dde47df1c036f86d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rencom-0.1.5-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