Quick Start
Scan a project folder and save results:Understanding Scanning
When you run a scan, SCANOSS-PY:- Fingerprints your source code using the Winnowing algorithm
- Compares fingerprints against the SCANOSS Knowledge Base
- Identifies matching open-source components
- Detects licences, vulnerabilities, and quality issues
- Returns detailed results in JSON format
.wfp file; it does not perform a lookup.
Basic Scanning
Scan a Directory
Scan a Single File
Scan Multiple Specific Files
Scanning with Dependencies
SCANOSS-PY can detect and analyse declared dependencies from package manifest files (e.g.package.json, requirements.txt, pom.xml).
Scan Source Files and Dependencies
Note: Dependency scanning requiresscancode-toolkitto be installed. Without it, the--dependenciesflag will produce an error.
Scan Dependencies Only
Skip file scanning and analyse only declared dependencies:Scanning with Pre-Generated Fingerprints
For large projects or CI/CD pipelines, you can separate the fingerprinting step from the scanning step. Pass a previously generated.wfp fingerprint file directly to the scanner:
Scanning with a Settings File
SCANOSS supports ascanoss.json settings file for persistent configuration.
The example below shows how to exclude specific files and directories from scanning using
glob patterns. The ! prefix negates a pattern, re-including a previously excluded path.