Socket
Socket
Sign inDemoInstall

securityriskcard

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    securityriskcard

Conversion from scorecard ratings to risk ratings.


Maintainers
1

Readme

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.

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc