license-sentinel
v0.1.0Audit Python and npm dependency licenses before you ship, judged against how you distribute.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_project
Scan a project's dependencies and report licensing risk. Args: path: Project directory to scan. Defaults to the current directory. context: How you distribute your product. One of ``proprietary`` (closed-source product you distribute), ``saas-backend`` (you only run it, never distribute), ``permissive`` (your own project is MIT/Apache/BSD), ``copyleft-ok`` (your own project is GPL family). Returns: Counts per verdict plus every BLOCK and REVIEW item with the reason.
| Parameter | Type | Description |
|---|---|---|
context | string | |
path | string |
check_package
Check packages or raw license strings before installing them. Args: names: Package or license strings to check. Accepts the messy real-world forms: ``AGPL-3.0``, ``BUSL-1.1``, ``GPLv3``, ``Apache License 2.0``, ``MIT OR Apache-2.0``, or a comma-separated string of any of these. These are license strings, not package lookups: to audit what is actually installed in a project directory, use ``audit_project``. context: Distribution context, see ``audit_project``. Returns: One line per input with its verdict and the r…
| Parameter | Type | Description |
|---|---|---|
names * | ||
context | string |
generate_notices
Write a THIRD-PARTY-NOTICES.md attribution document for client hand-off. Args: path: Project directory to scan. output: Output file. Relative paths are resolved against ``path``. Returns: The absolute path written and how many dependencies were listed.
| Parameter | Type | Description |
|---|---|---|
output | string | |
path | string |