AgentSync Python SDK
Python SDK for the AgentSync x402 micropayment gateway on Radix.
Install
pip install agentsync-sdk
Note: the distribution name is
agentsync-sdk; the import package remainsagentsync(from agentsync import ...). For local development usepip install -e .in the repo.
Development
pip install -e ".[dev]"
pytest
Platform Attestation Verification
Verify a platform-signed attestation envelope against the trusted platform Ed25519 public key:
from agentsync import SignatureEnvelope, verify_platform_attestation
trusted_public_key = "9afcc1cf66b256d7d9567a906fba4317305d92c3e7fd7f27386dffe182332576"
envelope = SignatureEnvelope(
payload="account_tdx_2_...:5.500000:0",
signature="<128-char hex>",
public_key=trusted_public_key,
algorithm="ed25519+sha256",
)
valid = verify_platform_attestation(envelope, trusted_public_key) # bool
verify_platform_attestation() is pure and synchronous: the trusted key is
injected by the caller and never fetched from the network. It asserts that the
envelope's public_key matches the trusted key before verifying the
Ed25519(SHA-256(payload)) signature.
The TypeScript counterpart lives at ../sdk-typescript.
Metadata
Release files for agentsync-sdk 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentsync_sdk-1.0.0.tar.gz | 19.0 kB | Without provenance | Details for agentsync_sdk-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentsync_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for agentsync_sdk-1.0.0-py3-none-any.whl |
Total release size: 33.3 kB
Release files / agentsync_sdk-1.0.0.tar.gz
| Download URL | agentsync_sdk-1.0.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de3c0600a2e6f60634e7f11a0fbcf225244fda9736fb2343968ab08be512d371
|
|
BLAKE2b-256 checksum How to use checksums |
5dbcf0340234a849cee870476f940b8128b406c63c8c5dd55a2a31f5664d0b4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / agentsync_sdk-1.0.0-py3-none-any.whl
| Download URL | agentsync_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6c764a056bd732fcecc9a255abf62bab98799f485da21dd741cc5c0510be8c6
|
|
BLAKE2b-256 checksum How to use checksums |
0a11dc5a501babfa7fdb34682fc8a51389e0b5e9d422e5458a2081f67639045b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for agentsync-sdk 1.0.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.