Skip to main content

rosud · Python SDK

AI agent USDC payment infrastructure — Official Python SDK

pip install rosud

Quick Start

import rosud

client = rosud.Rosud(api_key="rosud_live_xxx")
# or set ROSUD_API_KEY environment variable

# Create a payment
payment = client.payments.create(
    amount=5.00,
    to="0x742d35Cc6634C0532925a3b8D4C9E3Ff9C4A6bB",
    memo="api_call_fee",
)
print(payment.status)   # "confirmed"
print(payment.tx_hash)  # "0x..."

# Check balance
balance = client.wallets.balance()
print(f"Balance: {balance.usdc} USDC")

Async

import asyncio
import rosud

async def main():
    client = rosud.AsyncRosud(api_key="rosud_live_xxx")
    payment = await client.payments.create(amount=1.00, to="0x...")
    await client.close()

asyncio.run(main())

Resources

  • Payments — client.payments.create(), .list(), .get()
  • Agents — client.agents.create(), .list(), .get(), .delete()
  • Wallets — client.wallets.balance()
  • Webhooks — client.webhooks.create(), .list(), .delete()

Error Handling

from rosud.exceptions import RosudAPIError, RosudAuthError

try:
    payment = client.payments.create(amount=5.00, to="0x...")
except RosudAuthError:
    print("Invalid API key")
except RosudAPIError as e:
    print(e.status_code, e.message)

Metadata

Release files for rosud 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rosud 0.1.0
File Size Uploaded Provenance Actions
rosud-0.1.0.tar.gz 15.9 kB Without provenance Details for rosud-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rosud 0.1.0
File Interpreter ABI Platform Actions
rosud-0.1.0-py3-none-any.whl Python 3 none any Details for rosud-0.1.0-py3-none-any.whl

Total release size: 30.2 kB

Release files / rosud-0.1.0.tar.gz

Download URL rosud-0.1.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
91238b5e12a81aeb890b2827cfb74b4c3e81bf399e12bca5da00c213b90359ce
BLAKE2b-256 checksum
How to use checksums
7b67f021ed2dd5ff372d444b39f93d35533f2d0f3f50edd155408c468dda56e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / rosud-0.1.0-py3-none-any.whl

Download URL rosud-0.1.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edc2cffac34fe5d3da787739f59a13773c29aba84fa64104971468f172370f45
BLAKE2b-256 checksum
How to use checksums
fa5b0a6377f5ba3d9c81de0eda513d2b48adde5a3ccc72d5a51b6e389fa9d16e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for rosud 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page