The SCANOSS python package provides a simple easy to consume library for interacting with SCANOSS APIs/Engine.
This GitHub Container Package repo provides this package in an easy to install/run image.
To install (from GHCR), please run:
docker pull ghcr.io/scanoss/scanoss-py:latest
The Python CLI is exposed from the image and can be run using:
docker run -it ghcr.io/scanoss/scanoss-py
To scan the current folder run:
docker run -it -v "$(pwd)":"/scanoss" ghcr.io/scanoss/scanoss-py scan .
To output the results to a file run:
docker run -it -v "$(pwd)":"/scanoss" ghcr.io/scanoss/scanoss-py scan -o results.json .
To redirect output to a file run:
docker run -i -v "$(pwd)":"/scanoss" ghcr.io/scanoss/scanoss-py scan . > output.json
To scan for dependencies and output the results to a file run:
docker run -it -v "$(pwd)":"/scanoss" ghcr.io/scanoss/scanoss-py scan -D -o results.json .
To support dependency scanning, this container contains the Python scancode-toolkit.
While scanning the source paths, the SCANOSS CLI can (if requested) use scancode
to search for dependency files. SCANOSS then takes this output and decorates it with license information, etc.
To run scancode standalone from this image please run:
docker run -it -v "$(pwd)":"/scanoss" --entrypoint scancode ghcr.io/scanoss/scanoss-py --help
The source for this repo can be found here.
Details of each release can be found here.
Image tag/version details can be found here.