raimon49 / pip-licenses

Dump the license list of packages installed with pip.
MIT License
307 stars 43 forks source link

`--format=json` outputs only license, name, and version #106

Closed jond01 closed 3 years ago

jond01 commented 3 years ago

From the documentation, it looks like pip-licenses --format=json should output a json with 5 keys:

  {
    "Author": "Django Software Foundation",
    "License": "BSD",
    "Name": "Django",
    "URL": "https://www.djangoproject.com/",
    "Version": "2.0.2"
  },

But when I use it there are only 3 keys - this is one item in the list I get:

  {
    "License": "MIT",
    "Name": "pytest",
    "Version": "6.2.4"
  },

I checked also previous versions and it doesn't change.

Is the documentation not updated? Or that it is another problem?

raimon49 commented 3 years ago

You can additionally specify the --with-author and --with-urls options to get the results you want.

jond01 commented 3 years ago

Oh, I see! Thanks.