A Python module to parse DISA STIG (XCCDF) Files
Project description
About
A basic Python package to parse DISA STIG (XCCDF) Files into a readable JSON format.
Installation
To install stig-parser, simple run the following command:
pip install stig-parser
Documentation
Documentation hasn't been created at this time. For the current development documentation, please visit the repository.
Usage
To use this package simply, import the module and run the convert-xccdf()
function. This will result in the a JSON String object.
## LOAD PYTHON MODULE
from stig_parser import convert_xccdf
## LOAD XML FILE (OPTIONAL)
import os
with open("example.xml", "r") as fh:
raw_file = fh.read()
## PARSE XCCDF(XML) to JSON
json_results = convert_xccdf(raw_file)
Dependencies
The following packages are required for this package:
Package Name | Reason |
---|---|
xmltodict | This converts the raw XML file to a python dictionary for ease of processing |
Comments, Concerns and Gripes
If you have any comments, concerns and/or gripes, please feel free to submit an issue on the repository.
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
stig_parser-1.0.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for stig_parser-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a003830b7c8fda7f9ac4613c56f041b347a1d636fcb022e69056424f730c3ef2 |
|
MD5 | 5338bf886ac47c9c2c5fdbcddaaa1b97 |
|
BLAKE2b-256 | 47ce3f426bdd2f5cca05993035e1afceb2ab0725e8a9429ed285a1253a737169 |