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

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

Built distribution (wheel)

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

Total release size: 6.0 MB

Release files / fastaun-0.5.39.tar.gz

Download URL fastaun-0.5.39.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d730119e8824a5e91dc5f49897dc995af2f8e804fd5e6ec33b553b36275aaf0b
BLAKE2b-256 checksum
How to use checksums
de1ab6475f3ba87f5d8444deaaeda89cacdea955485de038770c780a21d4478d
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.39-py3-none-any.whl

Download URL fastaun-0.5.39-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
296a625c915e4b878ee0e46fa9cc69a419ce230641ab66bb5693c0791cbcb983
BLAKE2b-256 checksum
How to use checksums
d71884fca786cf5bb55f92ce6dbf2eb8d89811685b2e536766c4b15fdc27bb06
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.39

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