Skip to main content

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 mirror spize_core::wire exactly; change only in lockstep.

Project details


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.2.0a1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aex_sdk-1.2.0a1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file aex_sdk-1.2.0a1.tar.gz.

File metadata

  • Download URL: aex_sdk-1.2.0a1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aex_sdk-1.2.0a1.tar.gz
Algorithm Hash digest
SHA256 1635db61df30e72e53837c1213ba2271d9c085123923564c4411d6e53a809c46
MD5 a6ab418ea1bccb1b5998f48ec74313f1
BLAKE2b-256 4f3463d45a3900cf2ca3e9b9b50074a1152b8d3b462b78d58291987e8851f779

See more details on using hashes here.

File details

Details for the file aex_sdk-1.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: aex_sdk-1.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aex_sdk-1.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8905baecd8d096050c523de65d6a4555e143ae494b126d2c66e48be1b9ca2dd8
MD5 9d31ddb583b641eafab59cd660087b2b
BLAKE2b-256 ec076aa610e15b8b871d1c1c82fb238868e76a2e5b6baf285e6aed124760996c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page