List any package's direct dependencies and their versions.
Project description
from depinfo import print_dependencies
def show_versions():
print_dependencies("your-package-name")
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
help(get_pkg_info)
Example
from depinfo import print_dependencies
print_dependencies("depinfo")
System Information
==================
OS Linux
OS-release 4.4.0-122-generic
Python 3.6.5
Package Versions
================
pip 10.0.1
setuptools 39.0.1
wheel 0.31.0
Copyright
Copyright © 2018-2021, Moritz E. Beber.
Free software distributed under the Apache Software License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
depinfo-2.1.0.tar.gz
(14.1 kB
view hashes)
Built Distribution
depinfo-2.1.0-py3-none-any.whl
(23.8 kB
view hashes)