Skip to main content

AGLedger SDK — Accountability and audit infrastructure for agentic systems.

Project description

AGLedger Python SDK

Accountability and audit infrastructure for agentic systems. Self-hosted.

Install

pip install agledger

Quick Start

import os
from agledger import AgledgerClient

client = AgledgerClient(
    api_key=os.environ["AGLEDGER_API_KEY"],
    base_url=os.environ["AGLEDGER_EXTERNAL_URL"],  # your AGLedger instance URL
)

# Create a mandate
mandate = client.mandates.create(
    enterprise_id="ent_123",
    contract_type="ACH-PROC-v1",
    contract_version="1",
    platform="internal",
    criteria={"item": "widgets", "max_quantity": 100},
)

# Activate it
client.mandates.transition(mandate.id, "activate")

# Submit a receipt
receipt = client.receipts.submit(mandate.id, evidence={"quantity": 95, "vendor": "acme"})

# Verify
result = client.verification.verify(mandate.id)

Configuration

client = AgledgerClient(
    api_key="ach_ent_...",                              # or set AGLEDGER_API_KEY env var
    base_url="https://agledger.internal.example.com",   # your instance URL
    max_retries=2,                                      # default: 2
    timeout=30.0,                                       # default: 30s
)

Async Support

from agledger import AsyncAgledgerClient

async with AsyncAgledgerClient() as client:
    mandate = await client.mandates.get("mnd-123")

Resources

23 resource sub-clients: mandates, receipts, verification, disputes, webhooks, reputation, events, schemas, dashboard, compliance, registration, health, admin, a2a, capabilities, notarize, enterprises, projects, proxy, federation, federation_admin, agents, references.

Licensing

AGLedger is free for single-node deployments (Docker Compose with bundled database). An Enterprise License is required for external database connections, federation, and multi-node deployments.

Full details: agledger.ai/pricing | License Agreement

SDK License

Proprietary. Copyright (c) 2026 AGLedger LLC. All rights reserved.

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

agledger-0.3.1.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

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

agledger-0.3.1-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

Details for the file agledger-0.3.1.tar.gz.

File metadata

  • Download URL: agledger-0.3.1.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agledger-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a07cc9d8b3b4f0f8471f29f8e14061178b071922539ba4da60b6413be4b394c8
MD5 eb9c8487034727b48f1cc0022cc4c176
BLAKE2b-256 dbcbe036c6ca9c79396af1b15f45d7c527a76b5ecf2ac431d362d06ca97d2cad

See more details on using hashes here.

File details

Details for the file agledger-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: agledger-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agledger-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1492d4b86d6b44786383e09bed00cce01050574ad06814f670e23a69cb0c415
MD5 2ec978beafef263199d2d9972ca3b054
BLAKE2b-256 e8ed1fe9f2da634e540f99f1d67973f5c7c0455ec25ebdaec99976687cbcc494

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