How mikemoore63/spdx_matcher works
spdx_matcher is a Python library for identifying SPDX licenses and exceptions in text. The primary workflow accepts license text, normalizes it, and returns exact-match details; fuzzy matching is an optional alternative that returns scored candidates. The package also includes a filesystem-scanning demo that can analyze and store license content in Google Cloud Storage. The excerpts show the demo’s calls, but do not expose the full matcher implementation, so internal matching stages are kept broad.
Main entry points: __init__.py Matcher API · demo.py Filesystem scanner demo · data_models.py Matcher models
Components 10
Other components
- Library caller
- Matcher API
src/spdx_matcher/__init__.py - Text normalization
src/spdx_matcher/__init__.py - License matching
src/spdx_matcher/__init__.py - Matcher models
src/spdx_matcher/data_models.py - Fuzzy matching
src/spdx_matcher/__init__.py - Match results
- Filesystem scanner demo
demo.py - Local files
- Google Cloud Storage
Connections 10
- Library caller → Matcher API: submits text
README.md - Matcher API → Text normalization: normalizes text
README.md - Matcher API → License matching: matches license
README.md - License matching → Match results: returns details
README.md - Library caller → Fuzzy matching: requests fuzzy match
README.md - Fuzzy matching → Match results: returns scores
README.md - Matcher API → Matcher models: imports models
src/spdx_matcher/__init__.py - Filesystem scanner demo → Local files: reads files
demo.py - Filesystem scanner demo → Matcher API: calls matcher
demo.py - Filesystem scanner demo → Google Cloud Storage: uploads content
demo.py