Conversion from scorecard ratings to risk ratings.
Project description
SecurityRiskCard
This package provides an simple shared way of converting security scorecard data from "wellness" into risk.
Installing
To install from PyPi:
pip install securityriskcard
If you want to install directly from source, you can do that by adding the following into your requirements.txt
:
git+https://github.com/morphysm/securityriskcard.git@main
Usage example:
from securityriskcard import convert_to_risk
# Your scorecard result goes here.
data = convert_to_risk(scorecard_data)
print(json.dumps(data, indent=4))
Or if you want to test if the package is installed and you have scorecard result as json file:
python -m securityriskcard <path/to/scorecard.json>
Testing
Currently package contains some regression tests, which you can run during development or refactor to ensure data is output the same. The directory with test data also includes a script to generate output to 'freeze' current state. Do not run it until you are confident that change behaves as expected.
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
Built Distribution
Hashes for securityriskcard-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dce536f97e911c389cf539e027b9ded1a39e4d481fb6ff70499d4a1907e9d250 |
|
MD5 | 8503cfd53040f009a7887f2bfd7e2b99 |
|
BLAKE2b-256 | 28a3a8e870eba764f4c8176db059a388414d9e74053f4c7440318d3354a994cf |