Skip to main content

tvm-x402

Python SDK for the x402 payment protocol (TRON-only).

Installation

pip install tvm-x402

Optional extras:

pip install "tvm-x402[tron]"
pip install "tvm-x402[fastapi]"
pip install "tvm-x402[flask]"
pip install "tvm-x402[all]"

Quick Start

from x402.clients import X402Client

client = X402Client()

If you want automatic handling of HTTP 402 responses, use X402HttpClient:

import httpx

from x402.clients import X402Client, X402HttpClient

x402_client = X402Client()
http_client = httpx.AsyncClient()
client = X402HttpClient(http_client=http_client, x402_client=x402_client)

Links

Metadata

Release files for tvm-x402 0.1.1

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

Source distribution (sdist)

Source distribution for tvm-x402 0.1.1
File Size Uploaded
tvm_x402-0.1.1.tar.gz 38.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tvm-x402 0.1.1
File Interpreter ABI Platform
tvm_x402-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 89.5 kB

Release files / tvm_x402-0.1.1.tar.gz

Download URL tvm_x402-0.1.1.tar.gz
Size 38.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5fad0af72776b1a410b79ab9d4907a8ebd745115694fdb954c555892ef27052e
BLAKE2b-256 checksum
How to use checksums
65387b0e955d6a4dc8b85cd383dc3af3d49a613d44e8750ca69136ad6d800e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / tvm_x402-0.1.1-py3-none-any.whl

Download URL tvm_x402-0.1.1-py3-none-any.whl
Size 51.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d77225828de14d177ee54bedc104540ff23d355b6da1694b0556c7e63edc5bb8
BLAKE2b-256 checksum
How to use checksums
45c63bb191acdfd1e72e5b24da77a6c712b3c18f505d7af439984667b0f8409b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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