Dump the software license list of Python packages installed with pip.
Project description
pip-licenses-cli
Dump the software license list of Python packages installed with pip.
Description
pip-licenses-cli
is a CLI tool for checking the software licenses of installed Python packages with pip.
Implemented with the idea inspired by composer licenses
command in Composer (a.k.a PHP package management tool):
https://getcomposer.org/doc/03-cli.md#licenses
This is a fork of the original pip-licenses project. While pip-licenses-cli
provides a CLI,
pip-licenses-lib provides the library functionality. The CLI builds upon the library.
Installation
You can install this package from PyPI:
python -m pip install pip-licenses-cli
If you want to additionally parse license declarations with SPDX expressions, then also install the spdx
extra:
python -m pip install 'pip-licenses-cli[spdx]'
Alternatively, you can use the package from source directly after installing the required dependencies.
Usage
Execute the command with your venv (or virtualenv) environment.
# Install packages in your venv environment
(venv) $ pip install Django pip-licenses-cli
# Check the licenses with your venv environment
(venv) $ pip-licenses
Name Version License
Django 2.0.2 BSD
pytz 2017.3 MIT
For further details, see the detailed docs.
About UnicodeEncodeError
If a UnicodeEncodeError
occurs, check your environment variables LANG
and LC_TYPE
.
Additionally, you can set PYTHONIOENCODING
to override the encoding used for stdout
.
This mostly occurs in isolated environments such as Docker and tox.
See useful reports:
Dependencies
pip-licenses-cli
has been implemented in the policy to minimize the dependencies on external packages.
- pip-licenses-lib by the same authors as the CLI (MIT License).
- prettytable by Luke Maurits, subject to the BSD-3-Clause License.
- Note: This package implicitly requires wcwidth by Jeff Quast (MIT License).
- For Python < 3.11: tomli by Taneli Hukkinen under the MIT License.
If you are using SPDX support with the spdx
extra, the following additional dependencies are required:
- license-expression by nexB Inc. under the Apache-2.0 License.
- boolean.py by Sebastian Krämer under the BSD-2-Clause License.
Contributing
License
This package is subject to the terms of the MIT license.
Disclaimer
All results are generated automatically from the data supplied by the corresponding package maintainers and provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. No generated content should be considered or used as legal advice. Consult an Attorney for any legal advice.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pip_licenses_cli-1.4.0.tar.gz
.
File metadata
- Download URL: pip_licenses_cli-1.4.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2e7ab78dc8ec225ee8cf669e1c1cb6024079a3a566ccce71a02c5c434c4bce35
|
|
MD5 |
9ba7565e89ce202395f52ce97d90fe1d
|
|
BLAKE2b-256 |
5e8799be450bfdb96d909c2e7b9c76d351dbbae747ec91a17d3957251260c643
|
Provenance
The following attestation bundles were made for pip_licenses_cli-1.4.0.tar.gz
:
Publisher:
release.yml
on stefan6419846/pip-licenses-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pip_licenses_cli-1.4.0.tar.gz
-
Subject digest:
2e7ab78dc8ec225ee8cf669e1c1cb6024079a3a566ccce71a02c5c434c4bce35
- Sigstore transparency entry: 259601168
- Sigstore integration time:
-
Permalink:
stefan6419846/pip-licenses-cli@063d81d9de9d4b812f292de964e9a825361cf482
-
Branch / Tag:
refs/tags/v1.4.0
- Owner: https://github.com/stefan6419846
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@063d81d9de9d4b812f292de964e9a825361cf482
-
Trigger Event:
release
-
Statement type:
File details
Details for the file pip_licenses_cli-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: pip_licenses_cli-1.4.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fda842befd821757483d7601ea99301a87f2b7c4829cc7c80fc1d7e8cc3916b5
|
|
MD5 |
7301146245ec549d5c1fb6ba339ed683
|
|
BLAKE2b-256 |
bfa99745dbe1c2c5c92e4df907f7e6387987e93b28c21452ed1594e5c91ac62c
|
Provenance
The following attestation bundles were made for pip_licenses_cli-1.4.0-py3-none-any.whl
:
Publisher:
release.yml
on stefan6419846/pip-licenses-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pip_licenses_cli-1.4.0-py3-none-any.whl
-
Subject digest:
fda842befd821757483d7601ea99301a87f2b7c4829cc7c80fc1d7e8cc3916b5
- Sigstore transparency entry: 259601176
- Sigstore integration time:
-
Permalink:
stefan6419846/pip-licenses-cli@063d81d9de9d4b812f292de964e9a825361cf482
-
Branch / Tag:
refs/tags/v1.4.0
- Owner: https://github.com/stefan6419846
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@063d81d9de9d4b812f292de964e9a825361cf482
-
Trigger Event:
release
-
Statement type: