dephell package list

Show installed packages. See how DepHell looks for Python environment.

$ dephell package list
[
  {
    "authors": [
      "Hynek Schlawack",
      "Hynek Schlawack"
    ],
    "description": "Classes Without Boilerplate",
    "installed": [
      "19.1.0"
    ],
    "latest": "19.1.0"
    "license": "MIT",
    "links": {
      "home": "https://www.attrs.org/",
      "project": "Documentation, https://www.attrs.org/"
    },
    "name": "attrs",
  },
  ...
]

Output of this command is really long. So, in most cases you want to filter it.

Show only names:

dephell package list --filter="#.name.sorted()"
[
  "aiofiles",
  "aiohttp",
  "appdirs",
  ...
]

Show only name and installed versions:

$ dephell package list --filter="#.name+installed.each()"
[
  {
    "installed": [
      "1.2"
    ],
    "name": "cerberus"
  },
  ...
]

Show name and description for first 10 packages (it can be useful for pagination by output):

$ dephell package list --filter="#.name+description.each().:10"
[
  {
    "description": "Lightweight, extensible schema and data validation tool for Python dictionaries.",
    "name": "cerberus"
  },
  ...
]

See also

  1. How DepHell choose Python environment.
  2. How to filter commands JSON output.
  3. dephell deps outdated to show outdated packages in the virtual environment or lockfile.
  4. dephell package search to search packages on PyPI.
  5. dephell package show to get information about single package.
  6. dephell package install to install package.