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¶
- How DepHell choose Python environment.
- How to filter commands JSON output.
- dephell deps outdated to show outdated packages in the virtual environment or lockfile.
- dephell package search to search packages on PyPI.
- dephell package show to get information about single package.
- dephell package install to install package.