Skip to main content

# 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.

Metadata

Release files for pkg-deps 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pkg-deps 1.0.3
File Size Uploaded
pkg-deps-1.0.3.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pkg-deps 1.0.3
File Interpreter ABI Platform
pkg_deps-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.9 kB

Release files / pkg-deps-1.0.3.tar.gz

Download URL pkg-deps-1.0.3.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a24288d10d59c4a9012b26222c7108894288bb2afde3fc1d055a627df1807c5a
BLAKE2b-256 checksum
How to use checksums
563c0d5854ae3c3d2d0a386c9b9afa6f410cfc8675c13819f34cce821aa4032b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pkg_deps-1.0.3-py2.py3-none-any.whl

Download URL pkg_deps-1.0.3-py2.py3-none-any.whl
Size 13.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8b8ae4d94020e9250c02cd87a8fc7e3a105597669c5a92393ecedfbed703d9d4
BLAKE2b-256 checksum
How to use checksums
67e201ca682f13bd83d76425894fae9bf9af8fb0e979f1cb3a25bee2254b4875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page