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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pycompliance-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290f9ad6707a6550650a92a40be3ac34cf7adb46ca8da76942a99ba7fe2b0bcf |
|
MD5 | 811c6c489b7bfb55dcd986e32e5379fa |
|
BLAKE2b-256 | a74181d6a2052af5f8b8472e3cd95e71639f952c48528cff1dba63c7109924a0 |