qolaig-audit (Python)
SDK pour le journal d’audit Qolaig (immudb) :
emit()— événements métier structurés (POST /entries)capture_stdout()— aspireprint/ stdout / stderrcapture_logging()— aspirelogger.info/warning/error
Install
pip install -e /path/to/packages-qolaig/qolaig-audit-python
Usage
import logging
import os
from qolaig_audit import Audit
audit = Audit(
base_url="https://audits-logs.qolaig.app",
token=os.environ["QOLAIG_AUDIT_TOKEN"],
)
audit.capture_stdout()
audit.capture_logging()
logging.info("app started")
print("hello from stdout")
audit.emit("order.created", {"id": 42}, metadata={"source": "api"})
audit.flush()
Le token vient de la page Journal d’audit du tracking Qolaig (après « Activer le journal »).
Notes
- Envoi en batch vers
POST /ingest/logs(stdout / logging). emitest synchrone versPOST /entries.- Ne capture que le process Python où le SDK est chargé (pas les autres containers).
Metadata
Release files for qolaig-audit 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| qolaig_audit-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for qolaig_audit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qolaig_audit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qolaig_audit-0.1.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / qolaig_audit-0.1.0.tar.gz
| Download URL | qolaig_audit-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bde456bfbe17ffca9e3e55415c3b14f3a873d264be1afe4e1323f34c2844abfc
|
|
BLAKE2b-256 checksum How to use checksums |
a70878370c5b44ca62bd73888eacedec324f41e827065e9228a3c4b5260929db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / qolaig_audit-0.1.0-py3-none-any.whl
| Download URL | qolaig_audit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f3c8f595a591fd5795dced3f00f3864992f745a4429d2846ad3dbc2c7f4287a
|
|
BLAKE2b-256 checksum How to use checksums |
964b99adae8ba0fd5827ad227993865c2cb7c8257959f794760f80a5baafeb65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for qolaig-audit 0.1.0
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.