Python SDK for AEX — the Agent Exchange Protocol.
Project description
spize (Python SDK)
Python client for the Agent Exchange Protocol (AEX).
Install
pip install spize
Quick start
from spize import Identity, SpizeClient
# One-time: create + register an identity.
identity = Identity.generate(org="acme", name="alice")
identity.save("alice.key")
client = SpizeClient(base_url="http://localhost:8080", identity=identity)
client.register()
# Send.
transfer = client.send(
recipient="spize:acme/bob:aabbcc",
file="invoice.pdf",
declared_mime="application/pdf",
)
print(transfer.state) # 'ready_for_pickup' or 'rejected'
# Receive (as Bob).
bob = Identity.load("bob.key")
bob_client = SpizeClient(base_url="http://localhost:8080", identity=bob)
bytes_in = bob_client.download(transfer.transfer_id)
bob_client.ack(transfer.transfer_id)
Components
Identity— Ed25519 keypair + canonical agent_id derivation. Save/load to disk.SpizeClient— thin HTTP wrapper over the control plane. Handles signing + replay nonces.wire— canonical byte functions that mirrorspize_core::wireexactly; change only in lockstep.
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
aex_sdk-1.3.0b1.tar.gz
(24.8 kB
view details)
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
aex_sdk-1.3.0b1-py3-none-any.whl
(19.1 kB
view details)
File details
Details for the file aex_sdk-1.3.0b1.tar.gz.
File metadata
- Download URL: aex_sdk-1.3.0b1.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8481eb115cde20f464ac7b49c0f073c89c64ef4d2354ad736057225d0059c3b
|
|
| MD5 |
a47bef0eea4489858d551411684646e5
|
|
| BLAKE2b-256 |
a49acc44c764b012bb5c3253de7b04433c433f4dc52c4cd9337c9f004cdba879
|
File details
Details for the file aex_sdk-1.3.0b1-py3-none-any.whl.
File metadata
- Download URL: aex_sdk-1.3.0b1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c403d255e3be12687ce0ae24d99400032f1a1122cbd02a067720483e69f436
|
|
| MD5 |
5ae53935749706e01c82d3cde3f41268
|
|
| BLAKE2b-256 |
47f57e4cf3e351ef47174f70d161530201fb4bddb466a5ba2c773342569548c5
|