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: complete —
canonical_json,compute_event_hash,build_hash_chain, andAuditClient.emitare implemented and verified byte-for-byte against the shared parity corpus (../spec/parity-corpus.json), including envelope trace correlation (optional OTel viapip install smooai-audit[otel]).
Install
uv add smooai-audit # or: pip install smooai-audit
Usage
from smooai_audit import AuditClient, AuditClientOptions, AuditEvent, AuditResource
client = AuditClient(AuditClientOptions(endpoint=endpoint, token=token))
client.emit(
AuditEvent(
id="01HXXXXXXXXXXXXXXXXXXXXXXX",
organization_id="org_123",
actor_type="user",
actor_id="user_abc",
action="crm.contact_deleted",
resource=AuditResource(type="crm.contact", id="c-42"),
outcome="success",
metadata={},
timestamp="2026-07-14T00:00:00.000Z",
)
)
License
MIT © SmooAI
Release files for smooai-audit 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smooai_audit-0.3.0.tar.gz | 29.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smooai_audit-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.5 kB
Release files / smooai_audit-0.3.0.tar.gz
| Download URL | smooai_audit-0.3.0.tar.gz |
|---|---|
| Size | 29.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36f4989aa9277c2ad811d53c91b85df4ed1ad1cd37e8424fe4bbe657f0e44cea
|
|
BLAKE2b-256 checksum How to use checksums |
c1aa6c19988a54feb66d9dbd4eacb45104deb5c1aca611474f51385fb461f7cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
|
Release files / smooai_audit-0.3.0-py3-none-any.whl
| Download URL | smooai_audit-0.3.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d1a5db4e13a18624eed40a9ba39ad4d0e315d312c864a66fa4a752a0be4ff69
|
|
BLAKE2b-256 checksum How to use checksums |
69007211887fdb0d0984c0335639e097e1de0e88ecf9863f6a05f04b75a95537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
|