Skip to main content

SCANOSS Report

Project description

ossreport

Actions Status Docker License PyPI Tag

Introduction

ossreport is a report tool for SCANOSS written in Python.

Prerequisites

  • Python >= 3.7.0

Run

git clone https://github.com/craftslab/ossreport.git

cd ossreport
pip install -Ur requirements.txt
python report.py --config-file="config.yml" --license-file "license.json" --scanoss-file "scanoss.json" --output-file "output.pdf"

Docker

git clone https://github.com/craftslab/ossreport.git

cd ossreport
docker build --no-cache -f Dockerfile -t craftslab/ossreport:latest .
docker run -it -v /tmp:/tmp craftslab/ossreport:latest ./ossreport --config-file="config.yml" --license-file "license.json" --scanoss-file "/tmp/scanoss.json" --output-file "/tmp/output.pdf"

Usage

usage: report.py [-h] [--config-file CONFIG_FILE]
                 [--license-file LICENSE_FILE] --output-file OUTPUT_FILE
                 --scanoss-file SCANOSS_FILE [-v]

SCANOSS Report

optional arguments:
  -h, --help            show this help message and exit
  --config-file CONFIG_FILE
                        config file (default: ossreport/config/config.yml)
  --license-file LICENSE_FILE
                        license file (default: ossreport/data/license.json)
  --output-file OUTPUT_FILE
                        output file (.pdf|.xlsx)
  --scanoss-file SCANOSS_FILE
                        scanoss file (.json)
  -v, --version         show program's version number and exit

Settings

ossreport parameters can be set in the directory config.

An example of configuration in config.yml:

apiVersion: v1
kind: worker
metadata:
  name: ossreport
spec:
  risk:
    license:
      critical:
      high:
        permissions:
          - commercial-use
          - modifications
          - distribution
          - patent-use
          - private-use
        conditions:
          - include-copyright
          - document-changes
          - disclose-source
          - same-license
        limitations:
          - liability
          - warranty
      medium:
        permissions:
        conditions:
        limitations:
      low:
        permissions:
          - commercial-use
          - modifications
          - distribution
          - patent-use
          - private-use
        conditions:
          - include-copyright
          - document-changes
        limitations:
          - trademark-use
          - liability
          - warranty
      none:
        permissions:
        conditions:
        limitations:

License

Project License can be found here.

Reference

License

ReportLab

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

ossreport-2.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

ossreport-2.0.0-py2.py3-none-any.whl (41.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ossreport-2.0.0.tar.gz.

File metadata

  • Download URL: ossreport-2.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

File hashes

Hashes for ossreport-2.0.0.tar.gz
Algorithm Hash digest
SHA256 08419ccd197de88b090ccd4ae786ac49b5c69013242780f6bea7ec5c5ce53dd6
MD5 130ef73e2da524e1f70ffb1f9750a2eb
BLAKE2b-256 d849972110e1fa2a810f4ec097471099a40f6174ddc8cbc994acec802802258e

See more details on using hashes here.

File details

Details for the file ossreport-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ossreport-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

File hashes

Hashes for ossreport-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24e3884979390adbf5d42a88dbbe84be6175b6a9dd88d9b4006311871e9cd6b7
MD5 1d2ccb422e052abf4968db90838b3adc
BLAKE2b-256 b14b3b0bb43bd0c408a6ca898ff54817d387546423b32a3a4a2fd7052422a40a

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