Skip to content

API Reference

trustedlicenses detects and categorizes the licenses of installed Python packages, then evaluates them against a policy declared in pyproject.toml.

Module Contents
Detection DistributionLicence, inspect_distribution, inspect_installed, canonical_name — license detection
Policy Policy, PolicyResult, detect_all, evaluate, format_failure, format_remediation — policy evaluation
Config load_policy, write_policy, ConfigError, NoPolicyConfiguredError — loading and writing policy config
Resolve resolve_packages, ResolutionError — resolving a candidate package for check
CLI trustedlicenses command (environment check, check <package>, and the interactive setup wizard)