PHION Python client
Budget-safe synchronous x402 v2 client. It gets a non-paying quote, validates the
origin, Base network, official USDC contract, PHION recipient and maximum amount,
then delegates local signing and retry to the official x402 SDK.
Installing this package never authorizes a payment. A paid call requires an
explicit PhionBuyer.call(...), a locally supplied wallet key and a
SpendingPolicy. Use a dedicated low-balance wallet and set cumulative, call,
expiry and service-path limits through SpendingMandate.
python -m venv .venv
. .venv/bin/activate
pip install -e .
export EVM_PRIVATE_KEY=0x... # dedicated agent wallet; never commit this value
python example.py
The example has a hard limit of 0.001 USDC and verifies the signed result.
The public MCP decision surface remains available without this package at
https://phion.systems/mcp/decision; start with phion_resolve in PREFLIGHT
mode when payment is not yet authorized.
Metadata
Release files for phion-client 1.52.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phion_client-1.52.9.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phion_client-1.52.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / phion_client-1.52.9.tar.gz
| Download URL | phion_client-1.52.9.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
683d17662b5f778adbb341cdf68b48e8e6c8ee5b53f2951c197a9e8006360a37
|
|
BLAKE2b-256 checksum How to use checksums |
47ca2c2a08fb6c233b28801913a7e5e2154c9f5d750047a124bd563c00252533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Release files / phion_client-1.52.9-py3-none-any.whl
| Download URL | phion_client-1.52.9-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe955595df594999d1b1145102f3729e077ea200cd173112609cec900696b90c
|
|
BLAKE2b-256 checksum How to use checksums |
656183674724080c0bd234ab9ff7e549e7c7dbcec81609f5f8ba0edfa582fb6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|