pycadf
CADF Library
What it is and what it does
PyCADF is a Python library that implements the Cloud Auditing Data Federation (CADF) specification published by the DMTF. It provides a data model and serialization layer for audit events, allowing systems to emit structured, standardized audit notifications that comply with the CADF schema. The library is primarily used within OpenStack but can be adopted by any system that needs to produce audit trails meeting the CADF standard.
The package depends on oslo.config and oslo.serialization for configuration and JSON serialization. It establishes strict expectations about audit event structure, making it easier for auditors and compliance tools to parse and validate audit logs from diverse sources. The library has been actively maintained since its initial release and supports modern Python versions.
Use it for:
- Emit standardized CADF-compliant audit events from OpenStack services.
- Build audit logging into cloud applications that need to meet compliance or security standards.
- Serialize audit events to JSON for ingestion into centralized audit log aggregation systems.
- Validate audit event structure against the CADF specification before transmission.
- Integrate audit trail generation into systems that must interoperate with CADF-aware tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyCADF implements the Cloud Auditing Data Federation specification to provide a standardized auditing data model for OpenStack and other systems that need to emit structured audit events.
Yes, if you are building or extending OpenStack or need to emit CADF-compliant audit events. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. If you are not working within an OpenStack context or do not need CADF compliance, this library is unlikely to be relevant.
Install
pycadf on PyPI
pip
pip install pycadfuv
uv add pycadfpoetry
poetry add pycadfInstalling pycadf
Before you install
Low install friction with only two runtime dependencies (oslo.config and oslo.serialization). Active maintenance with a release 36 days ago. Supports current Python versions (3.11–3.14).
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most deployment contexts.
Quickstart
pip install pycadf
from pycadf import cadf_base
from oslo.serialization import jsonutils
event = cadf_base.CADFBase()
event_json = jsonutils.dumps(event.as_dict())
Requires Python 3.11 or later.
Verify before relying
- Whether the package is actively maintained by OpenStack or has transitioned to community maintenance.
- Real-world adoption rate beyond OpenStack projects.
- Performance characteristics when serializing large audit event volumes.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — oslo.config, oslo.serialization |
| Maintenance | actively maintained — 36 days since the last release |
| First released | |
| Downloads | 329,177/month — #7,547 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pycadf-4.1.0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
os-vifos-vif provides a library for managing the…
permissive · top 15,000 on PyPI
cloudsec-auditAudits AWS cloud security posture by checking…
permissive · top 15,000 on PyPI
keystoneauth1Provides authentication plugins, API discovery,…
permissive · top 5,000 on PyPI
aa-memberauditA Django app for Alliance Auth that provides…
unclear · top 15,000 on PyPI
SQLAlchemy-ContinuumSQLAlchemy-Continuum adds automatic versioning…
permissive · top 5,000 on PyPI
graphene-federationAdds Apollo Federation support to Graphene…
permissive · top 15,000 on PyPI
django-easy-auditLogs every CRUD operation, authentication…
copyleft · top 15,000 on PyPI
google-cloud-audit-logProvides Python bindings to Google Cloud Audit…
permissive · top 1,000 on PyPI
asdf-standardProvides the ASDF (Advanced Scientific Data…
unclear · top 15,000 on PyPI
ciris-persistCIRISPersist provides unified, versioned…
agpl · top 15,000 on PyPI