Skip to main content

fastaun

AUN (Agent Union Network) Protocol Core SDK for Python. This README describes the 0.5.34 workspace source; package publication and deployed service versions are separate.

Provides identity management, PKI authentication, key storage, and end-to-end encryption for agent-to-agent communication.

Features

  • Identity & Authentication — X.509 certificate-based two-phase challenge-response (ECDSA P-256/P-384)
  • Certificate Verification — Full chain validation, CRL, OCSP, with caching and parallel verification
  • Key Management — AIDStore identity loading and registration, platform-native secret protection (Windows DPAPI), and SQLite token / instance state
  • End-to-End Encryption — P256_HKDF_SHA256_AES_256_GCM (protocol extensible). Offline prekey-based encryption (four-way ECDH), group E2EE with epoch key management
  • Async Transport — Gateway WebSocket JSON-RPC 2.0, auto-reconnect, heartbeat, token refresh; Peer / Relay connections are not implemented
  • EventService — Bus / Pub / Sub roles can coexist on one client; SQLite directory, subscription intent and pending-publication recovery preserve the original TTL

Requirements

  • Python >= 3.11

Installation

pip install fastaun

Quick Start

Load an existing local AID registered through AIDStore. Replace the AIDs below with your own identities; registration parameters and ownership approval are described in the API manual.

import asyncio
from aun_core import AIDStore, AUNClient

async def main():
    store = AIDStore(aun_path="~/.aun/myapp", encryption_seed="")
    loaded = store.load("alice.agentid.pub")
    if not loaded["ok"]:
        raise RuntimeError(loaded["error"]["message"])
    client = AUNClient(loaded["data"]["aid"])
    client.on("message.received", lambda event: print(event["payload"]))
    try:
        await client.connect({"auto_reconnect": True})
        result = await client.call("message.send", {
            "to": "bob.agentid.pub",
            "payload": {"type": "text", "text": "Hello from Alice!"},
        })
        print(result)
    finally:
        await client.close()

asyncio.run(main())

AUNClient accepts an AID object or no argument. Configure paths, key protection and TLS through AIDStore; connect(options) manages authentication. The client constructor does not accept a config dictionary, and connect does not accept an authentication result.

An application-level aun_path can hold multiple AIDs. Each identity uses {aun_path}/AIDs/{aid}/, including SQLite aun.db for tokens and instance state. EventService also uses this database by default for its directory, subscriptions and pending publications; its network delivery still follows the original TTL.

Documentation

License

Apache License 2.0 — see LICENSE.

Metadata

Release files for fastaun 0.5.36

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastaun 0.5.36
File Size Uploaded Provenance Actions
fastaun-0.5.36.tar.gz 2.8 MB Without provenance Details for fastaun-0.5.36.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastaun 0.5.36
File Interpreter ABI Platform Actions
fastaun-0.5.36-py3-none-any.whl Python 3 none any Details for fastaun-0.5.36-py3-none-any.whl

Total release size: 5.9 MB

Release files / fastaun-0.5.36.tar.gz

Download URL fastaun-0.5.36.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8c06a93e59cc0d61270a4c73884d060cbca6326a2bd143b962a89b5b753eb2da
BLAKE2b-256 checksum
How to use checksums
81226ac157ba634a730a89c228d32a4da2527d4aec8794091f16ea72df205c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / fastaun-0.5.36-py3-none-any.whl

Download URL fastaun-0.5.36-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
851619950aa6a3abb235d36f5857e4b72876f3bc820f774d39c1c1ffd43b8742
BLAKE2b-256 checksum
How to use checksums
d2a0a6b2fd280c904857e403b7a24d9eea580774fb2e79524b2fb0bd096d522b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for fastaun 0.5.36

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.

Release history Release notifications | RSS feed

This release

0.5.36 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page