Skip to main content

Dump the license list of packages installed with pip.

Project description

Build Status PyPI version GitHub Release Codecov BSD License Requirements Status

Dump the license list of packages installed with pip.

Description

pip-licenses is a CLI tool for checking the software license of installed 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

Installation

Install it via PyPI using pip command.

$ pip install pip-licenses

Usage

Execute the command with your venv (or virtualenv) environment.

# Install packages in your venv environment
(venv) $ pip install Django pip-licenses

# Check the licenses with your venv environment
(venv) $ pip-licenses
 Name    Version  License
 Django  2.0.2    BSD
 pytz    2017.3   MIT

Command-Line Options

–with-system

By default, system packages such as pip and setuptools are ignored.

If you want to output all including system package, use the --with-system option.

(venv) $ pip-licenses --with-system
 Name          Version  License
 Django        2.0.2    BSD
 PTable        0.9.2    BSD (3 clause)
 pip           9.0.1    MIT
 pip-licenses  1.0.0    MIT License
 pytz          2017.3   MIT
 setuptools    38.5.0   UNKNOWN

–with-authors

When executed with the --with-authors option, output with the author of the package.

(venv) $ pip-licenses --with-authors
 Name    Version  License  Author
 Django  2.0.2    BSD      Django Software Foundation
 pytz    2017.3   MIT      Stuart Bishop

–with-urls

For packages without METADATA, the license is output as UNKNOWN. To get more package information, use the --with-urls option.

(venv) $ pip-licenses --with-urls
 Name    Version  License  URL
 Django  2.0.2    BSD      https://www.djangoproject.com/
 pytz    2017.3   MIT      http://pythonhosted.org/pytz

–order

By default, it is ordered by package name.

If you give arguments to the --order option, you can output in other sorted order.

(venv) $ pip-licenses --order=license

More Information

Other, please make sure to execute the --help option.

License

MIT License

CHANGELOG

1.0.0

  • First stable release version

0.2.0

  • Implement new option --order

    • Default behavior is --order=name

0.1.0

  • First implementation version

    • Support options

      • --with-system

      • --with-authors

      • --with-urls

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pip-licenses-1.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pip_licenses-1.0.0-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pip-licenses-1.0.0.tar.gz.

File metadata

  • Download URL: pip-licenses-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pip-licenses-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70f08a074e38683c0b9f0df16beca16a3f9f66f2e5754b0c45a32d149355e294
MD5 5283722511cce5f99b683b1eca46429c
BLAKE2b-256 0fd2e23a2d4bd8499513a875d695273dc5006e670eaa7be2ed0400bbb1dc4ce6

See more details on using hashes here.

File details

Details for the file pip_licenses-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pip_licenses-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a6319966ee533be9be77ec465ee588657998ef62a39eaddb9626c0dc6d2f41bd
MD5 a946ad503a647554ecf2864534b738be
BLAKE2b-256 1e6a6309099ef595bf3e4027222668870a06dc2923ff0679213df7444e799fb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page