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()
# For specific regions
# client = Aeterdum(base_url="https://eu.aeterdum.com")
# With signature verification
# client = Aeterdum(server_public_key="0be...")
# 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_12345")
if result.get("client_verified"):
print("Merkle Proof Valid")
if result.get("signature_verified"):
print("Digital Signature Valid")
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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aeterdum-1.0.1.tar.gz.
File metadata
- Download URL: aeterdum-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f74be513e3a15571c0cbee1b88734b9c820a6a0ea5c25a46e948a73f6d6519c
|
|
| MD5 |
ad819a169da69e9c4fa50bfecdbcd7a0
|
|
| BLAKE2b-256 |
73f5594df15379b0e5a10c90b94dcfb468b8ea291c8753501db521f13bec9258
|
File details
Details for the file aeterdum-1.0.1-py3-none-any.whl.
File metadata
- Download URL: aeterdum-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b221d3ae2a93452893cdd163e892ce41562556a58146d7d8b3eb1ee808fd31e6
|
|
| MD5 |
5ba1995c80b9df79b2896997614e36ac
|
|
| BLAKE2b-256 |
7c7cda4ba8a0e74f6075dd8d61c7c862e10c080eb7b28b809afb91c2f2d8d3c8
|