Skip to main content

Library for working with compliance benchmarks and data.

Project description

pycompliance

A simply library to represent compliance benchmarks as tree structures.

from pycompliance import pycompliance

benchmark = pycompliance.Benchmark("CIS Red Hat OpenShift Container Platform")
benchmark.version = "1.3.0"

section = pycompliance.Section("1")
section.title = "Control Plane Components"
benchmark.add_section(section)

subsection = pycompliance.Section("1.1")
subsection.title = "Master Node Configuration Files"
benchmark.add_section(subsection)

control = pycompliance.Control("1.1.1")
control.title = "Ensure foobar permissions"
benchmark.add_control(control)

print(benchmark.find('1.1.1').title)

Outputs:

Ensure foobar permissions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycompliance-0.0.1.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

pycompliance-0.0.1-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page