py-llm-audit
Internal Python package for unified LLM audit logging.
Exports:
configure_audit_logger(...)use_structlog_context(...)set_audit_context(...)aset_audit_context(...)get_audit_context()clear_audit_context()bind_tool_name(...)register_user_resolver(...)clear_user_resolver()resolve_audit_user_id(...)audit_context_from_headers(...)merge_audit_headers(...)build_llm_audit_doc(...)log_llm_audit(...)alog_llm_audit(...)MongoAuditWriterAsyncMongoAuditWriter
Notes:
- Supports native
contextvars - Can reuse existing
structlog.contextvars - Supports async
user_idresolution for cases such asgpt_id -> user_id log_llm_audit(...)is for sync writersalog_llm_audit(...)is for async writers such as Motor-backed Mongo- Default behavior is non-blocking: audit context resolution, doc building, and write failures do not interrupt the original business flow unless strict mode is explicitly enabled with
fail_silently=False
Metadata
Release files for klg-llm-audit 0.1.6
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 | |
|---|---|---|---|---|
| klg_llm_audit-0.1.6.tar.gz | 5.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| klg_llm_audit-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / klg_llm_audit-0.1.6.tar.gz
| Download URL | klg_llm_audit-0.1.6.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bd6e5a9649aba16b1859a21e5198ae8dd593ef4c876a9edfa3ab251767d1e51
|
|
BLAKE2b-256 checksum How to use checksums |
8276a394ab813e36a00db771a79da71684f819cf62f3f45fb31d78c7241e407a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / klg_llm_audit-0.1.6-py3-none-any.whl
| Download URL | klg_llm_audit-0.1.6-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d40755c6afaaa848fa401b9c902ead342ce241a16ad78089d754dc2b393963e
|
|
BLAKE2b-256 checksum How to use checksums |
89db003d3f238b6ef0451abad449055de43e30e9700434e6577087e435d11ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for klg-llm-audit 0.1.6
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.