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.
Install
It’s as simple as:
pip install depinfo
Usage
The easiest way is to implement the following in your package somewhere.
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
pipdeptree 0.12.1
setuptools 39.0.1
wheel 0.31.0
Copyright
Copyright (c) 2018, Moritz E. Beber.
Free software: Apache Software License 2.0
Metadata
Release files for depinfo 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| depinfo-1.0.3.tar.gz | 24.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| depinfo-1.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 32.7 kB
Release files / depinfo-1.0.3.tar.gz
| Download URL | depinfo-1.0.3.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
102fd7539b96effd15f3a55b837e8a1307c2639903a68441279366983654c198
|
|
BLAKE2b-256 checksum How to use checksums |
e09d84c1b7dcaafc657222bfd45243361cb928236839f2f00fcc02cc0f81ab89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3
|
Release files / depinfo-1.0.3-py2.py3-none-any.whl
| Download URL | depinfo-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d6e49362494d1448c35aaeee0d815fd8d0b85d42534a2b23effeae421ee342bf
|
|
BLAKE2b-256 checksum How to use checksums |
b220c3d7fa01bf994429f24776f4746957e0aadda5a9b75303784e788b0aba97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3
|