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
Metadata
Release files for pycompliance 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycompliance-0.0.1.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycompliance-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.7 kB
Release files / pycompliance-0.0.1.tar.gz
| Download URL | pycompliance-0.0.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6226ecc29aadc59fa3361b8a3b958273b6145ef452f4f1ca1b2a83a6c92036ab
|
|
BLAKE2b-256 checksum How to use checksums |
191852b2c2ac5f9427a2665e4633719537a5cd7a4fec70aa634892936dda8a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / pycompliance-0.0.1-py3-none-any.whl
| Download URL | pycompliance-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
290f9ad6707a6550650a92a40be3ac34cf7adb46ca8da76942a99ba7fe2b0bcf
|
|
BLAKE2b-256 checksum How to use checksums |
a74181d6a2052af5f8b8472e3cd95e71639f952c48528cff1dba63c7109924a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|