Skip to main content

AAES Python SDK

Installable distribution aaes-sdk, import aaes, Python 3.9+, stdlib only (urllib). Includes inline annotations and PEP 561 metadata. The source-file import remains supported: aaes/aaes.py is self-contained and can still be copied alone. The wheel also ships the LangGraph/CrewAI framework connectors as the aaes.connectors subpackage (aaes_tools, langgraph_connect, crewai_connect) — stdlib-only, with crewai/pydantic imported lazily by the caller's own environment.

python3 -m pip install ./sdk/python  # build/install local candidate
python3 sdk/python/test_aaes.py  # plain assertions; pytest also collects it

These examples require SDK access, a running AAES daemon, and a token issued by your deployment operator. Set AAES_ENDPOINT and AAES_TOKEN first. The request reads permitted capabilities; it does not execute an agent action.

from aaes import AaesError, Client

try:
    result = Client.from_env().capabilities()
    print(f"{len(result.capabilities)} permitted capabilities")
except AaesError as error:
    raise SystemExit(str(error))

Methods: capabilities, catalogue, health, action, brokered, resume, resume_brokered, present_grant, request_access, access_request, observe, refresh, federate, the bounded reads list_task, task, list_approvals, approval, list_entitlements, list_receipts, receipt, the agent-manager card reads manager_cards and decide_manager_card, the person-only OperatorClient.revoke_access_request, and aaes.verify_hint(export_path, public_key_path). Every method above is covered by this package's tests (test_aaes.py, test_resume.py, test_read.py, test_federation.py).

The tests are a plain python3 script (functions named test_* and a main() runner). Use the documented python3 command to run the suite without a test framework.

What it deliberately does not do: keyword arguments only, so url=, method=, headers=, credential= and token= are TypeErrors rather than fields; the payload is checked against the field names the daemon refuses; tenant and actor come from GET /v1/capabilities; receipts are the daemon's bytes and are verified offline with aaesctl verify; a mutating call is retried only on opt-in, only after a 503, and only under the same effect key.

Full guide: docs/guides/INTEGRATION.md.

A 503 response does not prove that the provider performed no action. Repeat only the identical request with its original effect key; never change the key to force a retry. The daemon retains the reservation and dispatch claim for uncertain outcomes and may answer the repeat with 409. It permits another dispatch only after proving that the previous attempt was never dispatched.

Candidate package and expanded contract

See SDK release policy and complete operation/scope table. Version 0.1.0 is a local candidate; no registry publication is claimed.

Metadata

Release files for aaes-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for aaes-sdk 0.1.0
File Size Uploaded
aaes_sdk-0.1.0.tar.gz 38.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aaes-sdk 0.1.0
File Interpreter ABI Platform
aaes_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 80.1 kB

Release files / aaes_sdk-0.1.0.tar.gz

Download URL aaes_sdk-0.1.0.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3dcaa6cfed9d487db6b7b937bb6657a36ea4df9963540d329219732d46a19ea7
BLAKE2b-256 checksum
How to use checksums
37727347ad626fb32de25ad2753247c445a2ef3d5a71e73740c6e60e542f73b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / aaes_sdk-0.1.0-py3-none-any.whl

Download URL aaes_sdk-0.1.0-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03d2fa73dfc8822f245d04ba91ae5d40c47c47b9210b80019ba1191ae9effe7e
BLAKE2b-256 checksum
How to use checksums
d1352a494b050e9c833e42d2cea49452bbca71fe80bb90f35a160d3953a6b4dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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