Skip to main content

Litewave Audit Library

Internal audit logging library for Litewave services.

Usage

from litewave_audit_lib.log_factory import get_logger

# Get a logger with NATS backend
logger = get_logger(
    nats_connection_url="nats://username:password@your-nats-server:4222"
)

# Log an audit event
logger.log(
    who="user@email.com",
    resource="document",
    action="view",
    location="cloud",
    request_context={"ip": "127.0.0.1"},
    context={"document_id": "doc123"},
    client={}
)

## Features

- Automatic reconnection handling
- Connection retry logic
- Proper error handling and logging
- Type hints for better IDE support
- Automatic cleanup of NATS connections

## Dependencies

- nats-py (for NATS backend)

Metadata

Release files for litewave-audit-lib 0.1.12

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

Source distribution (sdist)

Source distribution for litewave-audit-lib 0.1.12
File Size Uploaded
litewave_audit_lib-0.1.12.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for litewave-audit-lib 0.1.12
File Interpreter ABI Platform
litewave_audit_lib-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / litewave_audit_lib-0.1.12.tar.gz

Download URL litewave_audit_lib-0.1.12.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3239d0c4726b32d553d1c21ccb9e7b79d313546e0c373caa25f781d7c39c328f
BLAKE2b-256 checksum
How to use checksums
abe1937385f9ed46e06d58a256e78ec647e69e2edd100198dc532d7737c98e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / litewave_audit_lib-0.1.12-py3-none-any.whl

Download URL litewave_audit_lib-0.1.12-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0ef02d5cb92475a3fa4dbc67d1d2e07c4b4614f219257939e2d63aacd941ebc
BLAKE2b-256 checksum
How to use checksums
7f25746babfc9d36ffa391b67b6a1ba3e2d227066f523aa6fc57ed55cfdadf18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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