pip-licenses
Dump the software license list of Python packages installed with pip.
Decision gist · record as of 2026-08-14
Yes. pip-licenses is a straightforward, actively maintained tool with no known vulnerabilities, minimal dependencies, and a clear single purpose. It's worth installing if you need to audit or document the licenses of your Python dependencies—whether for compliance, documentation, or internal policy enforcement.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; earlier Python versions are not supported.
- Low friction install with only two lightweight runtime dependencies (prettytable and tomli).
- The project is actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-03-28 (139 days) · last repo commit 2026-08-14 · 373 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,541,432 downloads/mo, #2,583 on PyPI
Alternatives
Verify before relying
$ pip install pip-licenses
$ pip-licenses
# Output: Name | Version | License
# Django | 2.0.2 | BSD
# pytz | 2017.3 | MIT- Whether the tool correctly identifies licenses for packages that declare them only in Trove Classifiers vs. package metadata in all edge cases.
- Performance characteristics when scanning environments with hundreds or thousands of installed packages.
What it is and what it does
pip-licenses is a CLI tool that inspects your Python environment and generates a report of all installed packages and their licenses. It works by querying package metadata and Trove Classifiers to determine license information, then formats the results in your choice of output format. The tool supports multiple output formats including plain text, JSON, CSV, Markdown, HTML, reST, and Confluence markup, making it easy to integrate license audits into documentation, compliance workflows, or CI/CD pipelines.
The package is designed for developers and DevOps teams who need to track software licenses in their Python projects. It can filter packages, sort by various fields, include additional metadata like authors and URLs, and even verify that only approved licenses are in use. With support for modern Python versions and active maintenance, it handles the common use case of generating license inventories without requiring external dependencies beyond prettytable and tomli.
Use it for
- Generate a license compliance report for your project's dependencies to include in documentation or legal review.
- Audit installed packages to ensure only approved licenses are present in your environment.
- Export license information to JSON or CSV for integration into license management systems.
- Create a Markdown or HTML license table for inclusion in project README or documentation.
- Verify that a Docker container or deployment environment contains only permissively licensed packages.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pip-licenses is a straightforward, actively maintained tool with no known vulnerabilities, minimal dependencies, and a clear single purpose. It's worth installing if you need to audit or document the licenses of your Python dependencies—whether for compliance, documentation, or internal policy enforcement.
Install
pip-licenses on PyPI
Before you install
Low friction install with only two lightweight runtime dependencies (prettytable and tomli). The project is actively maintained with a recent release and no known vulnerabilities.
Requires Python 3.9 or later; earlier Python versions are not supported.
License in practice
MIT license permits use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
$ pip install pip-licenses
$ pip-licenses
# Output: Name | Version | License
# Django | 2.0.2 | BSD
# pytz | 2017.3 | MIT
Verify before relying
- Whether the tool correctly identifies licenses for packages that declare them only in Trove Classifiers vs. package metadata in all edge cases.
- Performance characteristics when scanning environments with hundreds or thousands of installed packages.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesprettytabletomli |
| Maintenance | Actively maintained 139 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,541,432 / month, #2,583 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: System :: System ShellsTopic :: System :: Systems AdministrationTyping :: Typed |
Evidence: pip_licenses-5.5.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pip license audit”
- pip-licensesA command-line tool that scans installed Python packages and outputs…
- pip-licenses-cliA command-line tool that scans installed Python packages and reports…
- pip-licenses-libProgrammatically retrieve and inspect the software licenses of Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Systems Administration packages
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Reads key-value pairs from a .env file and sets them as environment variables, supporting variable expansion and multiple configuration patterns for 12-factor applications.
Install it if your application reads configuration from environment variables.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
Invoke is a Python library for defining and running shell commands and executable Python code as CLI-invokable tasks, with subprocess management and task organization.
Install it if you need to organize shell commands and Python code into CLI tasks without the overhead of larger frameworks or shell scripting.
Formats and parses numbers, file sizes, timespans, and other values into human-readable text; provides terminal interaction utilities including ANSI text styling and user prompts.
Validates fully-qualified domain names (FQDNs) against RFC 1123 standards, checking whether a string would be acceptable as a public Internet hostname, with configurable relaxations for short names or underscores.
See also depinfo · pip-licenses-cli · pip-licenses-lib · licensecheck · speedtest-cli · pipfile · pip-audit · pyroma · sampleproject · pip-check