Skip to main content

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, and AuditClient.emit are implemented and verified byte-for-byte against the shared parity corpus (../spec/parity-corpus.json), including envelope trace correlation (optional OTel via pip 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

Metadata

Release files for smooai-audit 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for smooai-audit 0.4.1
File Interpreter ABI Platform Actions
smooai_audit-0.4.1-py3-none-any.whl Python 3 none any Details for smooai_audit-0.4.1-py3-none-any.whl

Release files / smooai_audit-0.4.1-py3-none-any.whl

Download URL smooai_audit-0.4.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f255960e23040eb45832425f17f015356ae60c9a4d7ce4d168d1a4868b402acd
BLAKE2b-256 checksum
How to use checksums
c641ba69d207b311f5c4aa7bcd9a72dcdb53591fb882b0d95b020f825984ee2a
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}

Security for smooai-audit 0.4.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page