Show licenses for your dependencies

You can use dephell deps licenses command to reveal licenses for all dependencies (and dependencies of dependencies) of your project. For example, let’s get licenses for flake8 plugins of dephell. First of all, get dephell source code:

git clone https://github.com/dephell/dephell.git
cd dephell

With CLI arguments

$ dephell deps licenses --from-format=pip --from-path=requirements-flake.txt

INFO resolved
{
  "BSD-2-Clause": [
    "enum34"
  ],
  ...
  "Unknown": [
    "flake8-logging-format"
  ]
}

With config

Dephell contains this section in the pyproject.toml:

[tool.dephell.flake8]
from = {format = "pip", path = "requirements-flake.txt"}

So, you can write command above quite shorter:

$ dephell deps licenses --env=flake8