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
xccdfparser-1.5.1.tar.gz
(90.7 kB
view hashes)
Built Distribution
Close
Hashes for xccdfparser-1.5.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfeac1702264f97e2d3ba1f34aeeab9e3d1571c5e1159c8f7c217b6be6d29ffd |
|
MD5 | 664e878ddaf5b06c575b24d4ac4edc3c |
|
BLAKE2b-256 | bb643f4f3f00616d872e88204011cc9bb5401524b219778e6a88ba6495019ba1 |