Parse XCCDF files and produce human-readable outputs
Project description
xccdfparser
Extensible parser for XCCDF Benchmark/Result XML files.
pip install xccdfparser
Produces a human-readable JSON from an incomprehensible XCCDF schema/result file:
For every TestResult tag in the input file,
-
Benchmark Details
- Benchmark ID
- Rule ID
- Title/Description
- Fixtext
-
Dictionary
- Metadata
- Timestamp
- Target Machine
- IP address(es)
- XCCDF Domain
- Results
- Rule ID
- Value
- Metadata
To run the parser on a file input.xml, just use:
xccdfparser -o output.json input.xml
OR
xccdfparser input.xml
Testing xccdfparser
To test the pre-built tox environments:
First, install tox if you don't have it:
pip install tox
Then in the package directory:
tox
Or for a specific environment:
tox -e py36
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
Built Distribution
File details
Details for the file xccdfparser-1.5.1.tar.gz
.
File metadata
- Download URL: xccdfparser-1.5.1.tar.gz
- Upload date:
- Size: 90.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b24bc6e39036f08f11e16994ccd7d60eeb3db10035f785fe9c9fc96cefe556c |
|
MD5 | 835937834e39173e2e4ec21ce88cce2d |
|
BLAKE2b-256 | 7be5cc67a18c845392c6245091d6869819fbf1216aba8326c2779f2f6d9ebe5b |
File details
Details for the file xccdfparser-1.5.1-py2-none-any.whl
.
File metadata
- Download URL: xccdfparser-1.5.1-py2-none-any.whl
- Upload date:
- Size: 94.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfeac1702264f97e2d3ba1f34aeeab9e3d1571c5e1159c8f7c217b6be6d29ffd |
|
MD5 | 664e878ddaf5b06c575b24d4ac4edc3c |
|
BLAKE2b-256 | bb643f4f3f00616d872e88204011cc9bb5401524b219778e6a88ba6495019ba1 |