Skip to main content

WS Bulk Report Generator

Project description

Logo
License CI GitHub release PyPI

WhiteSource Bulk Report Generator

Tool to execute a report on multiple projects.

  • The tool allows including and excluding scopes by stating names and tokens.
  • Report scope determines whether reports will be run on projects or products.
  • If Included scopes is not stated (via -i/--includedTokens), the tool will run reports on all scopes within (i.e. if --token/-k is organization than on all the organization).
  • Report data is exported by default in binary (i.e. Excel or PDF) format or JSON.

Supported Operating Systems

  • Linux (Bash): CentOS, Debian, Ubuntu, RedHat
  • Windows (PowerShell): 10, 2012, 2016

Prerequisites

  • Python 3.6+

Installation and Execution by pulling package from PyPi:

  1. Execute pip install ws-bulk-report-generator
    • Note: If installing packages as a non-root be sure to include the path to the executables within the Operating System paths.
  2. Run report: ws_bulk_report_generator -u <USER_KEY> -k <ORG_TOKEN> -r <REPORT_NAME> -s <REPORT_SCOPE>

Full Usage:

> bulk_report_generator -h
usage: bulk_report_generator [-h] -u WS_USER_KEY -k WS_TOKEN -r
                             {alerts,ignored_alerts,resolved_alerts,inventory,vulnerability,container_vulnerability,source_files,source_file_inventory,in_house_libraries,in_house,risk,library_location,license_compatibility,due_diligence,attributes,attribution,effect
ive_licenses,bugs,request_history}
                             [-s {project,product}] [-a WS_URL] [-o DIR] [-t {binary,json}] [-c CONFIG] [-i INC_TOKENS] [-e EXC_TOKENS] [-in INC_NAMES] [-en EXC_NAMES]

Bulk Reports Generator

optional arguments:
  -h, --help            show this help message and exit
  -u WS_USER_KEY, --userKey WS_USER_KEY
                        WS User Key
  -k WS_TOKEN, --token WS_TOKEN
                        WS Token
  -r {alerts,ignored_alerts,resolved_alerts,inventory,vulnerability,container_vulnerability,source_files,source_file_inventory,in_house_libraries,in_house,risk,library_location,license_compatibility,due_diligence,attributes,attribution,effective_licenses,bugs,reques
t_history}, --report {alerts,ignored_alerts,resolved_alerts,inventory,vulnerability,container_vulnerability,source_files,source_file_inventory,in_house_libraries,in_house,risk,library_location,license_compatibility,due_diligence,attributes,attribution,effective_lice
nses,bugs,request_history}
                        Report Type to produce
  -s {project,product}, --ReportScope {project,product}
                        Scope of report
  -a WS_URL, --wsUrl WS_URL
                        WS URL
  -o DIR, --reportDir DIR
                        Report Dir
  -t {binary,json}, --outputType {binary,json}
                        Type of output
  -c CONFIG, --config CONFIG
                        Location of configuration file
  -i INC_TOKENS, --includedTokens INC_TOKENS
                        Report Dir
  -e EXC_TOKENS, --excludedTokens EXC_TOKENS
                        Report Dir
  -in INC_NAMES, --includedNames INC_NAMES
                        Report Dir
  -en EXC_NAMES, --excludedNames EXC_NAMES
                        Report Dir

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ws_bulk_report_generator-0.1.9a2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file ws_bulk_report_generator-0.1.9a2-py3-none-any.whl.

File metadata

  • Download URL: ws_bulk_report_generator-0.1.9a2-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for ws_bulk_report_generator-0.1.9a2-py3-none-any.whl
Algorithm Hash digest
SHA256 345f2cb7dd600d3e167d848d8c4d8d057b6f26a9a71f2d27e59a7cc7019aef34
MD5 20780c85f5f6101ac2c629bed2e2121b
BLAKE2b-256 ae8985ba56e3e8d4def4a798217ae557fe1c327f7ad667b233a5a34242a9e4f5

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