Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Print dependency info in graph form and check for problems

Project description

# Print dependency info in graph form

pkg-deps is a tool to examine dependency information about installed Python packages, and render it in a variety of ways. Various checks can also be run. As of version 1.0, the output formats include:

  • human-readable text output with highlighting of problems,
  • teamcity, for specially-formatted messages that the TeamCity CI tool can understand (to use this, use pip install pkg-deps[teamcity]),
  • dot, for rendering with GraphViz, and
  • JSON, for further processing with automated tools (including re-loading and combining dependency graphs by this tool!)

The checks it can run include (again, as of 1.0):

  • finding dependency loops,
  • finding unmet dependencies, including unmet version requirements,
  • finding outdated packages,
  • ensuring that certain packages specify exact (‘==’) version dependencies, and
  • ensuring that certain packages do not have any indirect dependencies - e.g. making sure a web app pins all of its dependencies, including otherwise indirect ones.

The tool has several dependencies itself, so to avoid having to install it in each virtualenv you want to examine, it also supports running a probe with a different Python binary. For example, you could install it once using pipsi and then run it in your current virtualenv with pkg-deps -p `which python`.

For details on how to accomplish these things, run pkg-deps –help.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pkg-deps, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pkg_deps-1.0.3-py2.py3-none-any.whl (13.8 kB) File type Wheel Python version 3.6 Upload date Hashes View hashes
Filename, size pkg-deps-1.0.3.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page