dephell package show

Show information about package by name.

$ dephell package show jsonschema
{
  "authors": [
    "Julian Berman <Julian@GrayVines.com>"
  ],
  "description": "An implementation of JSON Schema validation for Python",
  "installed": [
    "2.6.0",
    "3.0.1"
  ],
  "latest": "3.0.1",
  "license": "MIT",
  "links": {
    "homepage": "https://github.com/Julian/jsonschema",
    "package": "https://pypi.org/project/jsonschema/"
  },
  "locations": [
    "/home/gram/.local/lib/python3.7/site-packages/jsonschema",
    "/usr/local/lib/python3.7/site-packages/jsonschema"
  ],
  "name": "jsonschema",
  "size": "620.11Kb",
  "updated": "2019-03-01"
}

If virtual environment for current project and environment exists this command will get package version for this virtual environment. Otherwise, this command will get package versions from all paths from sys.path for current Python. This is the reason why version.installed is a list.

Conda (Anaconda Cloud and conda-forge recipes)

By default, this command uses information from PyPI. However, you can explicitly specify --repo to search package among conda recipes.

Search recipes in the conda-froge Github repository:

$ dephell package show --repo=conda_git make
{
  "authors": [],
  "description": "GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files.",
  "latest": "4.2.1",
  "license": "GPLv3",
  "links": {
    "documentation": "https://www.gnu.org/software/make/manual/",
    "homepage": "https://www.gnu.org/software/make/"
  },
  "name": "make",
  "updated": "2019-01-12"
}

Search builded packages in Anaconda Cloud:

$ dephell package show --repo=conda_cloud make
{
  "authors": [],
  "description": "GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files.",
  "latest": "4.2.1",
  "license": "GPLv3",
  "links": {
    "anaconda": "https://anaconda.org/conda-forge/make",
    "documentation": "https://www.gnu.org/software/make/manual/",
    "homepage": "https://www.gnu.org/software/make/",
    "source": "https://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2"
  },
  "name": "make",
  "updated": "1970-01-01"
}
$ dephell package show --repo=conda_cloud textdistance
{
  "authors": [],
  "description": "TextDistance – python library for comparing distance between two or more sequences by many algorithms.",
  "latest": "4.1.0",
  "license": "LGPL-3.0",
  "links": {
    "anaconda": "https://anaconda.org/conda-forge/textdistance",
    "documentation": "https://pypi.org/project/textdistance/#description",
    "homepage": "https://github.com/orsinium/textdistance",
    "repository": "https://github.com/orsinium/textdistance",
    "source": "https://pypi.io/packages/source/t/textdistance/textdistance-4.1.0.tar.gz"
  },
  "name": "textdistance",
  "updated": "2019-03-13"
}

See also

  1. How DepHell choose Python environment.
  2. How to filter commands JSON output.
  3. dephell package search to search packages.
  4. dephell package list to show information about installed packages.
  5. dephell package install to install package.