Skip to main content

A package to fetch data from OpenSSF Scorecard API

Project description

ScoreCode is a tool for assessing the security and compliance of software projects. It evaluates various aspects of a project’s security posture and generates a scorecard to help organizations understand the security risks associated with the software.

Features: - Automated security assessment - Comprehensive scoring based on multiple criteria - Easy integration with existing workflows - Supports various platforms and repositories

Installation

To install Scorecard, you can use pip:

pip install scorecode

Usage

To use Scorecard, you need to call the fetch_scorecard function with the appropriate parameters. Below is a basic usage example:

from scorecode.ossf_scorecard import fetch_scorecard

# Fetch the scorecard data for a specific platform org and repo
data = fetch_scorecard(platform="github.com", org="nexB", repo="scancode-toolkit")

# Print the results
print("Scoring Tool:", data.scoring_tool)
print("Scoring Tool Version:", data.scoring_tool_version)
print("Score Date:", data.score_date)
print("Score:", data.score)
print("Documentation URL:", data.scoring_tool_documentation_url)

Testing

To run the tests, use pytest. Ensure that all dependencies are installed and then execute:

make test

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

scorecode-0.0.1.tar.gz (66.8 kB view details)

Uploaded Source

Built Distribution

ScoreCode-0.0.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file scorecode-0.0.1.tar.gz.

File metadata

  • Download URL: scorecode-0.0.1.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for scorecode-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8c5ad908b20f80ad4b98966d5fd1bfc1365c3c28dcd01dea0f847160ab478204
MD5 2a9e7862cab9cc15d7a301bc33c51765
BLAKE2b-256 c97368e27a45bdea2c0e5e24fcf6cc30e0e3726c090d01c61b8991485aaa6342

See more details on using hashes here.

File details

Details for the file ScoreCode-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ScoreCode-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ScoreCode-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 deb778d94f6707236ab7b341b30e7c9d184ad4970964066118ebff5a6cfd4fd4
MD5 a26b26927225b18f2157ae3ee996a4e8
BLAKE2b-256 8b7e7c8d0d02ec8eb12bfd1a1a77d3918e4627f77bc81ed39d882983b6f1dcb3

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