pip-licenses-cli
Dump the software license list of Python packages installed with pip.
What it is and what it does
pip-licenses-cli is a command-line utility that inspects your Python environment and generates a report of all installed packages and their associated software licenses. It was created as a maintained fork of the original pip-licenses project, providing a drop-in replacement for versions up to 5.0.0. The tool outputs license information in a formatted table, making it easy to audit your project's dependencies for compliance or documentation purposes.
The package depends on pip-licenses-lib for core license-detection logic, prettytable for formatted output, and tomli for configuration parsing on Python versions below 3.11. It is designed with minimal external dependencies and supports optional SPDX expression parsing when installed with the [spdx] extra. The tool is actively maintained and classified as production-stable.
Use it for:
- Generate a license report for all dependencies in a Python project for compliance documentation
- Audit installed packages to identify which ones use restrictive licenses before shipping code
- Create an automated license inventory as part of a CI/CD pipeline for dependency management
- Check license compatibility when adding new packages to an existing project
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool that scans installed Python packages and reports their software licenses in a formatted table.
Yes. This is a straightforward, actively maintained utility with low install friction, no known vulnerabilities, and a permissive MIT license. Install it if you need to audit or document the licenses of your Python dependencies—it solves a real compliance and documentation problem with minimal overhead.
Install
pip-licenses-cli on PyPI
pip
pip install pip-licenses-cliuv
uv add pip-licenses-clipoetry
poetry add pip-licenses-cliInstalling pip-licenses-cli
Before you install
Low friction install with minimal dependencies. Actively maintained as of 2026-08-14 with recent releases. Designed to minimize external package dependencies.
License in practice
MIT license (permissive) means you can use, modify, and distribute this tool freely with minimal restrictions.
Quickstart
pip install pip-licenses-cli
pip-licenses
Requires Python 3.10 or later. For SPDX expression parsing, install with the [spdx] extra: pip install 'pip-licenses-cli[spdx]'.
Verify before relying
- Whether the tool accurately reports all license types across the full range of PyPI packages
- Performance characteristics when scanning environments with hundreds or thousands of installed packages
- Compatibility with non-standard or custom license declarations beyond SPDX
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — pip-licenses-lib, prettytable, tomli |
| Maintenance | actively maintained — 100 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 113,662/month — #12,336 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pip_licenses_cli-4.1.0-py3-none-any.whl
Keywords: pip, pypi, package, license, check
Tags
More Systems Administration packages
Setuptools is a Python build backend and…
permissive · top 100 on PyPI
python-dotenvReads key-value pairs from a .env file and sets…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
invokeInvoke is a Python library for defining and…
permissive · top 1,000 on PyPI
humanfriendlyFormats and parses numbers, file sizes,…
permissive · top 1,000 on PyPI
fqdnValidates fully-qualified domain names (FQDNs)…
copyleft · top 1,000 on PyPI
licensecheckScans a project's dependencies to extract their…
permissive · top 15,000 on PyPI
pip-licensesA command-line tool that scans installed Python…
permissive · top 5,000 on PyPI
pip-licenses-libProgrammatically retrieve and inspect the…
permissive · top 15,000 on PyPI
snowflake-cli-labsThis package has been renamed and is now a…
permissive · top 15,000 on PyPI
license-expressionParses, validates, simplifies, and normalizes…
permissive · top 1,000 on PyPI
pyspdxValidates and tokenizes SPDX license…
copyleft · top 15,000 on PyPI
reusereuse is a command-line tool that validates and…
copyleft · top 15,000 on PyPI
pip-requirements-parserParses pip requirements files with the same…
permissive · top 1,000 on PyPI
spdx-toolsParse, validate, create, and convert SPDX…
permissive · top 5,000 on PyPI