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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file securityriskcard-0.0.6.tar.gz.
File metadata
- Download URL: securityriskcard-0.0.6.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a96428fa68dbb72c533de4093bd180de522996349e0eb8e63473b9b0d80b5ad
|
|
| MD5 |
3db8f93c89055615891ebb2dfd489407
|
|
| BLAKE2b-256 |
6586695189452552bbb7610dba543e17b72d9d078431bb29f6be6772cfd9828f
|
File details
Details for the file securityriskcard-0.0.6-py3-none-any.whl.
File metadata
- Download URL: securityriskcard-0.0.6-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d1bb8701999b035cbaa2fefbfa429aa7f97dd7cb5f8b641292e470dc55093b4
|
|
| MD5 |
015b6a2339f53c775d45de091f127812
|
|
| BLAKE2b-256 |
7137d16043cc5cbff7ee59d964097d6516d2fd6d9f8e3f6f25bf4722d2062c89
|