Skip to main content

List a package's direct dependencies and their versions.

Project description

Current PyPI Version Supported Python Versions Apache Software License Version 2.0 Code of Conduct Travis CI Codecov Black

A utility Python package intended for other library packages. Provides a function that when called with your package name, will print platform and dependency information.


It’s as simple as:

pip install depinfo


The easiest way is to implement the following in your package somewhere.

from depinfo import print_dependencies

def show_versions():

That’s all there is to it.

If instead you want to access and modify the information, you can make use of the underlying functions that return dictionaries that map package names to their current versions. By default it will include common build packages such as pip.

from depinfo import get_pkg_info


from depinfo import print_dependencies
System Information
OS                     Linux
OS-release 4.4.0-122-generic
Python                 3.6.5

Package Versions
pip        10.0.1
pipdeptree 0.12.1
setuptools 39.0.1
wheel      0.31.0

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 depinfo, version 1.5.3
Filename, size File type Python version Upload date Hashes
Filename, size depinfo-1.5.3-py2.py3-none-any.whl (8.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size depinfo-1.5.3.tar.gz (23.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page