licensecheck
Output the licenses used by dependencies and check if these are compatible with the project license
What it is and what it does
licensecheck is a command-line tool that reads your project's dependencies (from pyproject.toml or requirements files) and reports the license of each one, then checks whether those licenses are compatible with your project's declared license. It uses configurator, depgather, license-expression, and requests to gather package metadata and parse license strings, then outputs results as tables, JSON, CSV, HTML, or markdown.
The tool is designed for developers and teams who need to audit their dependency licenses for compliance or compatibility concerns. It supports filtering by license type, dependency groups, and extras, and can fail the check if incompatible licenses are found. The output includes explicit compatibility markers and can highlight only failing packages.
Use it for:
- Audit all dependencies in a Python project to ensure their licenses are compatible with your project's license before release.
- Generate a license report in CSV or JSON format for legal or compliance documentation.
- Filter dependencies by license type (e.g., MIT, Apache) to identify which packages use specific license families.
- Check only development dependencies (via --groups) to separate runtime and dev-time license concerns.
- Integrate into CI/CD to fail the build if any dependency uses a license you've marked as incompatible.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Scans a project's dependencies to extract their licenses and checks compatibility with the project's own license, reporting results in multiple formats.
Yes. The tool is actively maintained, has no known vulnerabilities, low install friction, and solves a real compliance problem. Use it if you need to audit or report on dependency licenses; the MIT license and permissive runtime dependencies make it safe to add to any project.
Install
licensecheck on PyPI
pip
pip install licensecheckuv
uv add licensecheckpoetry
poetry add licensecheckInstalling licensecheck
Before you install
Low friction install with 11 runtime dependencies, all permissively licensed. Active maintenance with a release 57 days ago and last commit on 2026-06-21.
License in practice
MIT license is permissive; you can use this tool freely in commercial and proprietary projects without restriction.
Quickstart
pip install licensecheck
licensecheck
# or with options:
licensecheck --license MIT --format json
Requires Python 3.12 or later.
Verify before relying
- Whether the tool correctly identifies and interprets all SPDX license identifiers in practice.
- How the tool handles packages with missing or ambiguous license metadata.
- Performance characteristics when scanning projects with hundreds of transitive dependencies.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — configurator, depgather, license-expression, loguru, markdown, platformdirs, pydantic, requests-cache, requests, rich, tomli |
| Maintenance | actively maintained — 57 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 489,048/month — #6,376 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: licensecheck-2026.0.8-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
liccheckScans Python project dependencies in…
permissive · top 5,000 on PyPI
pip-licenses-cliA command-line tool that scans installed Python…
permissive · top 15,000 on PyPI
pip-licenses-libProgrammatically retrieve and inspect the…
permissive · top 15,000 on PyPI
depgatherExtracts and lists dependencies from multiple…
permissive · top 15,000 on PyPI
pip-licensesA command-line tool that scans installed Python…
permissive · top 5,000 on PyPI
requirements-detectorScans a Python project to detect and list its…
permissive · top 15,000 on PyPI
boolean.pyParse, simplify, and compare boolean…
permissive · top 1,000 on PyPI
certifiCertifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
johnnydepJohnnydep displays the full dependency tree of…
permissive · top 15,000 on PyPI
flake8-requirementsA flake8 plugin that validates whether imported…
permissive · top 15,000 on PyPI