skillfed

pycadf

CADF Library

pycadf v4.1.0 329.2K downloads/30d#7,547 on PyPI
Permissive license Apache-2.0 Active released

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 pycadf

uv

uv add pycadf

poetry

poetry add pycadf

Installing 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

Environment :: OpenStackIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

CADF audit eventscloud auditing data federationOpenStack audit loggingstructured audit trailcompliance audit modelaudit event serializationDMTF CADF implementation
openstackaudit-loggingcompliance

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

os-vif

os-vif provides a library for managing the…

permissive · top 15,000 on PyPI

cloudsec-audit

Audits AWS cloud security posture by checking…

permissive · top 15,000 on PyPI

keystoneauth1

Provides authentication plugins, API discovery,…

permissive · top 5,000 on PyPI

aa-memberaudit

A Django app for Alliance Auth that provides…

unclear · top 15,000 on PyPI

SQLAlchemy-Continuum

SQLAlchemy-Continuum adds automatic versioning…

permissive · top 5,000 on PyPI

graphene-federation

Adds Apollo Federation support to Graphene…

permissive · top 15,000 on PyPI

django-easy-audit

Logs every CRUD operation, authentication…

copyleft · top 15,000 on PyPI

google-cloud-audit-log

Provides Python bindings to Google Cloud Audit…

permissive · top 1,000 on PyPI

asdf-standard

Provides the ASDF (Advanced Scientific Data…

unclear · top 15,000 on PyPI

ciris-persist

CIRISPersist provides unified, versioned…

agpl · top 15,000 on PyPI