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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pycompliance-0.0.1.tar.gz.

File metadata

  • Download URL: pycompliance-0.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pycompliance-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6226ecc29aadc59fa3361b8a3b958273b6145ef452f4f1ca1b2a83a6c92036ab
MD5 2b654737c4631d31e05a8e52cb5bbba8
BLAKE2b-256 191852b2c2ac5f9427a2665e4633719537a5cd7a4fec70aa634892936dda8a55

See more details on using hashes here.

File details

Details for the file pycompliance-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pycompliance-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pycompliance-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 290f9ad6707a6550650a92a40be3ac34cf7adb46ca8da76942a99ba7fe2b0bcf
MD5 811c6c489b7bfb55dcd986e32e5379fa
BLAKE2b-256 a74181d6a2052af5f8b8472e3cd95e71639f952c48528cff1dba63c7109924a0

See more details on using hashes here.

Supported by

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