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. This performs three checks locally:
- Recomputes the Merkle Root from the provided proof to ensure inclusion in the log tree.
- Recomputes the hash of the log payload to ensure the content matches the stored hash (tamper detection).
- (If public key provided) Verifies the Ed25519 signature of the root to ensure server authenticity.
result = client.logs.verify("log_12345")
if result.get("client_verified"):
print("Merkle Proof and Payload Verified")
if result.get("signature_verified"):
print("Digital Signature Valid")
result = client.logs.verify("log_2023...")
if result.get("client_verified"):
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.
Metadata
Release files for aeterdum 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aeterdum-1.0.2.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aeterdum-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / aeterdum-1.0.2.tar.gz
| Download URL | aeterdum-1.0.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ee55ec8f36bad5bae68e3be60b9d8d9835ae988513eb12137a0ce4339d73a10
|
|
BLAKE2b-256 checksum How to use checksums |
e5a6c7ca13228bd475377633062be351a0d2586e837fe71d76e059d956482ea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / aeterdum-1.0.2-py3-none-any.whl
| Download URL | aeterdum-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9affc7b9564b1091af0235f3a6cb4040041404ea78d0fceb745dc7451768712b
|
|
BLAKE2b-256 checksum How to use checksums |
5af5c95390db2b464906f4130c8ad6d2c47cf4d5b86c2d66d7683d8babe4807b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for aeterdum 1.0.2
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.