Prerequisites
Before you begin, make sure you have:Installation
Standard Installation
Install SCANOSS-PY from PyPI:Fast Winnowing
Provides 15x performance improvement in fingerprinting.Dependency Scanning
To enable dependency detection from package manifests and lockfiles, installscancode-toolkit:
scancode-toolkit is only required if you want to use the -D or --dependencies flag for scanning declared dependencies. Standard file and snippet scanning does not require this dependency.
Installation on Externally Managed Environments
Modern Linux distributions (Ubuntu 23.04+, Fedora 38+, Debian 11+).Docker Installation
Configuration
API Access Setup
While SCANOSS works without an API key, the free tier has usage limitations. To avoid hitting these limits, configure your API key before scanning. Set API Key via Environment Variables:scanoss-py automatically detects the SCANOSS_API_KEY environment variable when set.
You can also pass the API key directly with --key $SCANOSS_API_KEY when running the tool.