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.40

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.40
File Size Uploaded Provenance Actions
fastaun-0.5.40.tar.gz 2.9 MB Without provenance Details for fastaun-0.5.40.tar.gz

Built distribution (wheel)

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

Total release size: 6.1 MB

Release files / fastaun-0.5.40.tar.gz

Download URL fastaun-0.5.40.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
9b24b0f5c228265e8c8088bed9988c393a06fb271a49674af5f79e2b78307145
BLAKE2b-256 checksum
How to use checksums
9e54b45d94dafa055f9ae4d9f3a12142ccc19cb37f0f51fcdeea1dfd26e0a774
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

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

Download URL fastaun-0.5.40-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ab3a8f50a351828ae929897803f86265e0ba20771fcb56e4e94ddf574ae1bef3
BLAKE2b-256 checksum
How to use checksums
952cbfed7ea5755e36c07aa887baa473a9e86edbac0051c5eb9f83e53f5491de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for fastaun 0.5.40

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.40 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