Skip to main content

Official Python client for Aeterdum

Project description

Aeterdum Python SDK

Official Python client for Aeterdum, the immutable audit log service.

Installation

pip install aeterdum

Usage

Initialization

import os
from aeterdum import Aeterdum

# Recommended: Use environment variable AETERDUM_API_KEY
client = Aeterdum() 

# Or pass explicitly
# client = Aeterdum(api_key="sk_...")

Ingesting Logs

Ingest an event into the immutable ledger.

with Aeterdum() as client:
    log = client.logs.create(
        event="model.trained",
        actor="pipeline_worker_1",
        payload={
            "accuracy": 0.98,
            "dataset": "v2.1"
        },
        metadata={
            "env": "production"
        }
    )
    
    print(f"Log ID: {log['id']}")

Verifying Logs

Verify the cryptographic integrity of any log entry.

result = client.logs.verify("log_2023...")

if result["valid"]:
    print(f"Log verified! Merkle Root: {result['merkle_root']}")
else:
    print("Verification failed.")

Listing Logs

retrieve your audit trail for analysis.

logs = client.logs.list(limit=20)

for log in logs["data"]:
    print(f"{log['timestamp']}: {log['event']}")

Async/Sync

Currently, this SDK provides a synchronous interface using httpx.

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

aeterdum-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

aeterdum-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file aeterdum-1.0.0.tar.gz.

File metadata

  • Download URL: aeterdum-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for aeterdum-1.0.0.tar.gz
Algorithm Hash digest
SHA256 49cecc5872690be8181244e1adf398400769dbadd456896db32f802436a7a69d
MD5 3e356e3896d19b2a0c9cde495a0142d1
BLAKE2b-256 40e74c8f73dbcb47fd1a8a2abb0040517b0bcde70a2e0d5b9843991c76d478f2

See more details on using hashes here.

File details

Details for the file aeterdum-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: aeterdum-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for aeterdum-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f686abcfda155ced622da15c919129f0c16de4e69ea2d4ba3028c03ca1e45e33
MD5 556a1dba9de22beefdb6c0ce20eb3cf7
BLAKE2b-256 423aee96fdd87a587aa4892a7122555a7715998c56e187c2117eba2bada70d19

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