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.1.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.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smooai_audit-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c66eedf5df15f4a15884b7012db43291a3769a7e6f99061cadd08121b5ff48a0
MD5 49e2b720c764565e364d25220ca015ac
BLAKE2b-256 8889644293af8ef92de32f5c4002c3e854de351cac03eff7bd87cae48198b59c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smooai_audit-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ec8302acf26f08c9fc445fde67c41697976f1af39528af2ecb5af877b2343e
MD5 139dc51c7e900e4c649e49fee23487f8
BLAKE2b-256 261de651fceb0358bcec8d4757dc43ca0dccb0e82b3a280933c6bca317c8073f

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