Skip to main content

Polyglot client SDK for tamper-evident, SQL-queryable audit logging — Python port of @smooai/audit.

Project description

smooai-audit (Python)

Python port of @smooai/audit — a polyglot client SDK for tamper-evident, SQL-queryable audit logging: a canonical AuditEvent schema, canonical JSON serialization, a per-org-per-day SHA-256 hash chain, and an emit client. Verified byte-for-byte against a shared parity corpus.

Status: scaffold — canonical_json, compute_event_hash, and AuditClient.emit are stubbed (TODO(audit-impl)).

Install

uv add smooai-audit   # or: pip install smooai-audit

Usage

from smooai_audit import AuditClient, AuditClientOptions, AuditEvent

client = AuditClient(AuditClientOptions(endpoint=endpoint, token=token))
client.emit(
    AuditEvent(
        id="...",
        org_id="org_123",
        timestamp="2026-07-14T00:00:00.000Z",
        actor="user_abc",
        action="record.delete",
    )
)

License

MIT © SmooAI

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

smooai_audit-0.1.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

smooai_audit-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file smooai_audit-0.1.0.tar.gz.

File metadata

  • Download URL: smooai_audit-0.1.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for smooai_audit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ee6c9813ef702e67ca4099b18912ab524ccc9c962cffcaa1397564ccd1259d4
MD5 c72b64ae4df1da7b52fc251f39c6804e
BLAKE2b-256 381109b886ed458349754e171317f515dc37ca711ea93b18ae8aa97998486697

See more details on using hashes here.

File details

Details for the file smooai_audit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: smooai_audit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for smooai_audit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8c46c65c2b5c9508f22934f2cad24f11d0b92cf51beea25868859c6f200eb94
MD5 ef10caadededcd71eaa6fbbba9d00dac
BLAKE2b-256 3f502dad5ad8f27cb8e024488d9cd4247949e66e0ad496da304e13bb5d07b3aa

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