Skip to main content

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

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


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

Uploaded Source

Built Distribution

xccdfparser-1.5.1-py2-none-any.whl (94.4 kB view details)

Uploaded Python 2

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

Hashes for xccdfparser-1.5.1.tar.gz
Algorithm Hash digest
SHA256 0b24bc6e39036f08f11e16994ccd7d60eeb3db10035f785fe9c9fc96cefe556c
MD5 835937834e39173e2e4ec21ce88cce2d
BLAKE2b-256 7be5cc67a18c845392c6245091d6869819fbf1216aba8326c2779f2f6d9ebe5b

See more details on using hashes here.

File details

Details for the file xccdfparser-1.5.1-py2-none-any.whl.

File metadata

File hashes

Hashes for xccdfparser-1.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 bfeac1702264f97e2d3ba1f34aeeab9e3d1571c5e1159c8f7c217b6be6d29ffd
MD5 664e878ddaf5b06c575b24d4ac4edc3c
BLAKE2b-256 bb643f4f3f00616d872e88204011cc9bb5401524b219778e6a88ba6495019ba1

See more details on using hashes here.

Supported by

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