Buyer-side Python SDK for XRPL MPP HTTP payments
Project description
xrpl-mpp-client
Buyer-side SDK for XRPL-backed MPP HTTP retries.
Install
pip install xrpl-mpp-client
Main APIs
XRPLPaymentSignerXRPLPaymentTransportwrap_httpx_with_mpp_payment(...)select_payment_challenge(...)build_payment_authorization(...)
Example
import asyncio
from xrpl.wallet import Wallet
from xrpl_mpp_client import XRPLPaymentSigner, wrap_httpx_with_mpp_payment
async def main() -> None:
signer = XRPLPaymentSigner(
Wallet.from_seed("sEd..."),
rpc_url="https://s.altnet.rippletest.net:51234/",
network="xrpl:1",
)
async with wrap_httpx_with_mpp_payment(
signer,
asset="XRP:native",
) as client:
response = await client.get("https://merchant.example/premium")
print(response.status_code)
print(response.text)
asyncio.run(main())
The client understands both charge and session challenges and reads/writes the MPP HTTP headers directly.
For explicit session teardown, reuse the same XRPLPaymentTransport instance and call await transport.close_session("https://merchant.example/path").
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xrpl_mpp_client-0.1.4.tar.gz.
File metadata
- Download URL: xrpl_mpp_client-0.1.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
747628d7601c7220fc47f79aaea17aef14d288e70796930f037c5ff845dc990b
|
|
| MD5 |
1b29d741ffcd69228ef1859108271eb5
|
|
| BLAKE2b-256 |
b23b8c36b0f8f345830e822a4888f81860367f84449983dc5d9b3b4687b5f1b6
|
Provenance
The following attestation bundles were made for xrpl_mpp_client-0.1.4.tar.gz:
Publisher:
publish-package.yml on lgcarrier/xrpl-mpp-stack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrpl_mpp_client-0.1.4.tar.gz -
Subject digest:
747628d7601c7220fc47f79aaea17aef14d288e70796930f037c5ff845dc990b - Sigstore transparency entry: 1367577898
- Sigstore integration time:
-
Permalink:
lgcarrier/xrpl-mpp-stack@c95536e21796ac027f1dd0f684a17fcabda594c2 -
Branch / Tag:
refs/tags/client-v0.1.4 - Owner: https://github.com/lgcarrier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@c95536e21796ac027f1dd0f684a17fcabda594c2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xrpl_mpp_client-0.1.4-py3-none-any.whl.
File metadata
- Download URL: xrpl_mpp_client-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9dc39dd7ba286ac97c3ee78d08bf10285402113e94e3b1437651511d83e03b5
|
|
| MD5 |
f095617be0a245065d9e047a397f5e58
|
|
| BLAKE2b-256 |
442105cd2a70d0ce90fcafda999a0681a76cee8ec9b77e3b2fa21f0a37bfc5cf
|
Provenance
The following attestation bundles were made for xrpl_mpp_client-0.1.4-py3-none-any.whl:
Publisher:
publish-package.yml on lgcarrier/xrpl-mpp-stack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrpl_mpp_client-0.1.4-py3-none-any.whl -
Subject digest:
e9dc39dd7ba286ac97c3ee78d08bf10285402113e94e3b1437651511d83e03b5 - Sigstore transparency entry: 1367577902
- Sigstore integration time:
-
Permalink:
lgcarrier/xrpl-mpp-stack@c95536e21796ac027f1dd0f684a17fcabda594c2 -
Branch / Tag:
refs/tags/client-v0.1.4 - Owner: https://github.com/lgcarrier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@c95536e21796ac027f1dd0f684a17fcabda594c2 -
Trigger Event:
push
-
Statement type: